From: Mike Yuan Date: Tue, 9 Apr 2024 17:45:12 +0000 (+0800) Subject: pidref: 0 -> NULL for pointer X-Git-Tag: v256-rc1~252 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74531a93d6cb517d0c49b21b727db2a007ac5d88;p=thirdparty%2Fsystemd.git pidref: 0 -> NULL for pointer --- diff --git a/src/basic/pidref.c b/src/basic/pidref.c index 5f1042fae81..875fa11bea8 100644 --- a/src/basic/pidref.c +++ b/src/basic/pidref.c @@ -237,7 +237,7 @@ int pidref_dup(const PidRef *pidref, PidRef **ret) { } int pidref_new_from_pid(pid_t pid, PidRef **ret) { - _cleanup_(pidref_freep) PidRef *n = 0; + _cleanup_(pidref_freep) PidRef *n = NULL; int r; assert(ret);