Initialize local variables

CWE-457 by CodeQL.

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This commit is contained in:
Iker Pedrosa
2022-05-16 17:24:58 +02:00
committed by Serge Hallyn
parent 0c7ded471f
commit 3b89b71680
3 changed files with 13 additions and 14 deletions

View File

@@ -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) {