Fix fc_sort.c warning uncovered by recent gcc

output_name in main was set to argv[2] but then argv[2] rather than
output_name was used later in the function.
This commit is contained in:
Chris PeBenito 2013-02-26 09:16:49 -05:00
parent 019a11b370
commit c87f945a5a

View File

@ -1,4 +1,4 @@
/* Copyright 2005, Tresys Technology
/* Copyright 2005,2013 Tresys Technology
*
* Some parts of this came from matchpathcon.c in libselinux
*/
@ -523,7 +523,7 @@ int main(int argc, char *argv[])
fc_merge_sort(master);
/* Open the output file. */
if (!(out_file = fopen(argv[2], "w"))) {
if (!(out_file = fopen(output_name, "w"))) {
printf("Error: failure opening output file for write.\n");
return -1;
}