mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-01 23:05:17 +00:00
no need to strdup() a constant
This commit is contained in:
2
sudo.c
2
sudo.c
@@ -294,7 +294,6 @@ static void load_globals()
|
|||||||
(void) fprintf(stderr, "%s: %s: command not found\n", Argv[0], Argv[1]);
|
(void) fprintf(stderr, "%s: %s: command not found\n", Argv[0], Argv[1]);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ((cmnd = strdup(cmnd)) == NULL) {
|
if ((cmnd = strdup(cmnd)) == NULL) {
|
||||||
perror("malloc");
|
perror("malloc");
|
||||||
@@ -302,6 +301,7 @@ static void load_globals()
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user