]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pidref: 0 -> NULL for pointer
authorMike Yuan <me@yhndnzj.com>
Tue, 9 Apr 2024 17:45:12 +0000 (01:45 +0800)
committerMike Yuan <me@yhndnzj.com>
Tue, 9 Apr 2024 17:45:12 +0000 (01:45 +0800)
src/basic/pidref.c

index 5f1042fae815210d78ffd8f56ac90b43f96192c3..875fa11bea878020838920424865da8cc0fb89c4 100644 (file)
@@ -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);