Gentoo Archives: gentoo-commits

From: Sven Vermeulen <sven.vermeulen@××××××.be>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: support/
Date: Mon, 04 Mar 2013 20:15:22
Message-Id: 1362427994.ecfec7d07362a34a0cc6c0785bb649c58211ea47.SwifT@gentoo
1 commit: ecfec7d07362a34a0cc6c0785bb649c58211ea47
2 Author: Chris PeBenito <cpebenito <AT> tresys <DOT> com>
3 AuthorDate: Tue Feb 26 14:16:49 2013 +0000
4 Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
5 CommitDate: Mon Mar 4 20:13:14 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=ecfec7d0
7
8 Fix fc_sort.c warning uncovered by recent gcc
9
10 output_name in main was set to argv[2] but then argv[2] rather than
11 output_name was used later in the function.
12
13 ---
14 support/fc_sort.c | 4 ++--
15 1 files changed, 2 insertions(+), 2 deletions(-)
16
17 diff --git a/support/fc_sort.c b/support/fc_sort.c
18 index 6c43035..e03ef3b 100644
19 --- a/support/fc_sort.c
20 +++ b/support/fc_sort.c
21 @@ -1,4 +1,4 @@
22 -/* Copyright 2005, Tresys Technology
23 +/* Copyright 2005,2013 Tresys Technology
24 *
25 * Some parts of this came from matchpathcon.c in libselinux
26 */
27 @@ -523,7 +523,7 @@ int main(int argc, char *argv[])
28 fc_merge_sort(master);
29
30 /* Open the output file. */
31 - if (!(out_file = fopen(argv[2], "w"))) {
32 + if (!(out_file = fopen(output_name, "w"))) {
33 printf("Error: failure opening output file for write.\n");
34 return -1;
35 }