mirror of
https://github.com/SELinuxProject/refpolicy
synced 2025-02-13 18:17:28 +00:00
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:
parent
019a11b370
commit
c87f945a5a
@ -1,4 +1,4 @@
|
|||||||
/* Copyright 2005, Tresys Technology
|
/* Copyright 2005,2013 Tresys Technology
|
||||||
*
|
*
|
||||||
* Some parts of this came from matchpathcon.c in libselinux
|
* Some parts of this came from matchpathcon.c in libselinux
|
||||||
*/
|
*/
|
||||||
@ -523,7 +523,7 @@ int main(int argc, char *argv[])
|
|||||||
fc_merge_sort(master);
|
fc_merge_sort(master);
|
||||||
|
|
||||||
/* Open the output file. */
|
/* 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");
|
printf("Error: failure opening output file for write.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user