pidref: 0 -> NULL for pointer

This commit is contained in:
Mike Yuan
2024-04-10 01:45:12 +08:00
parent 035bdb1472
commit 74531a93d6
+1 -1
View 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);