Initialize local variables
CWE-457 by CodeQL. Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This commit is contained in:
committed by
Serge Hallyn
parent
0c7ded471f
commit
3b89b71680
@@ -45,7 +45,7 @@ int run_parts (const char *directory, const char *name, const char *action)
|
||||
struct dirent **namelist;
|
||||
int scanlist;
|
||||
int n;
|
||||
int execute_result;
|
||||
int execute_result = 0;
|
||||
|
||||
scanlist = scandir (directory, &namelist, 0, alphasort);
|
||||
if (scanlist<=0) {
|
||||
|
Reference in New Issue
Block a user