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

free(3) is already void, no need to cast it

This commit is contained in:
Todd C. Miller
1999-04-10 04:40:57 +00:00
parent 8e8fbc251e
commit eecc5ce1c9
11 changed files with 65 additions and 65 deletions

View File

@@ -425,7 +425,7 @@ int netgr_matches(netgr, host, user)
if (domain == (char *) -1) {
domain = (char *) emalloc(MAXHOSTNAMELEN);
if (getdomainname(domain, MAXHOSTNAMELEN) == -1 || *domain == '\0') {
(void) free(domain);
free(domain);
domain = NULL;
}
}