mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
NULL -> '\0'
This commit is contained in:
parent
5db1b51dae
commit
dda75b2fd7
@ -101,7 +101,7 @@ char * find_path(file)
|
|||||||
char *result = NULL; /* result of path/file lookup */
|
char *result = NULL; /* result of path/file lookup */
|
||||||
int checkdot = 0; /* check current dir? */
|
int checkdot = 0; /* check current dir? */
|
||||||
|
|
||||||
command[0] = NULL;
|
command[0] = '\0';
|
||||||
|
|
||||||
if (strlen(file) > MAXPATHLEN) {
|
if (strlen(file) > MAXPATHLEN) {
|
||||||
errno = ENAMETOOLONG;
|
errno = ENAMETOOLONG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user