mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Use ecalloc() when allocating structs.
This commit is contained in:
@@ -884,7 +884,7 @@ set_cmnd(void)
|
||||
|
||||
/* Resolve the path and return. */
|
||||
rval = FOUND;
|
||||
user_stat = emalloc(sizeof(struct stat));
|
||||
user_stat = ecalloc(1, sizeof(struct stat));
|
||||
|
||||
/* Default value for cmnd, overridden below. */
|
||||
if (user_cmnd == NULL)
|
||||
|
Reference in New Issue
Block a user