From 74531a93d6cb517d0c49b21b727db2a007ac5d88 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Wed, 10 Apr 2024 01:45:12 +0800 Subject: [PATCH] pidref: 0 -> NULL for pointer --- src/basic/pidref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/pidref.c b/src/basic/pidref.c index 5f1042fae8..875fa11bea 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);