mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
libreplace: Compare a pointer against NULL, not 0
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
669414efac
commit
af49efcde2
@ -54,7 +54,7 @@ static int closefrom_procfs(int lower)
|
||||
int ret = ENOMEM;
|
||||
|
||||
dirp = opendir("/proc/self/fd");
|
||||
if (dirp == 0) {
|
||||
if (dirp == NULL) {
|
||||
return errno;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user