summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch')
-rw-r--r--sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch b/sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch
index 66095f51e637..13e890c6a37c 100644
--- a/sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch
+++ b/sys-process/pidof-bsd/files/pidof-bsd-20050501-pname.patch
@@ -7,10 +7,10 @@
+ char *pname = NULL;
+
+ if (process_name == NULL)
-+ return;
++ return 0;
+
+ if ((pname = strdup(basename(process_name))) == NULL)
-+ return;
++ return 0;
- if ((kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open")) == NULL)
- (void)errx(1, "%s", kvm_geterr(kd));