1
0
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:
Volker Lendecke 2020-10-22 11:32:29 +02:00 committed by Jeremy Allison
parent 669414efac
commit af49efcde2

View File

@ -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;
}