Quiet a bogus gcc warning.
This commit is contained in:
@@ -100,7 +100,7 @@ sudo_edit(struct command_details *command_details)
|
|||||||
char *ofile;
|
char *ofile;
|
||||||
struct timeval omtim;
|
struct timeval omtim;
|
||||||
off_t osize;
|
off_t osize;
|
||||||
} *tf;
|
} *tf = NULL;
|
||||||
debug_decl(sudo_edit, SUDO_DEBUG_EDIT)
|
debug_decl(sudo_edit, SUDO_DEBUG_EDIT)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -324,10 +324,12 @@ sudo_edit(struct command_details *command_details)
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
/* Clean up temp files and return. */
|
/* Clean up temp files and return. */
|
||||||
|
if (tf != NULL) {
|
||||||
for (i = 0; i < nfiles; i++) {
|
for (i = 0; i < nfiles; i++) {
|
||||||
if (tf[i].tfile != NULL)
|
if (tf[i].tfile != NULL)
|
||||||
unlink(tf[i].tfile);
|
unlink(tf[i].tfile);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
debug_return_int(1);
|
debug_return_int(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user