2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Cast NULL terminator argument to char * when calling sudo_mkgrent().

Avoids a portability issue on systems where NULL is not a pointer.
This commit is contained in:
Todd C. Miller
2021-04-06 18:57:33 -06:00
parent d92610ee43
commit a2e4f53642
2 changed files with 5 additions and 5 deletions

View File

@@ -753,7 +753,7 @@ sudo_fakegrnam(const char *group)
debug_return_ptr(NULL);
}
debug_return_ptr(sudo_mkgrent(group, gid, NULL));
debug_return_ptr(sudo_mkgrent(group, gid, (char *)NULL));
}
void