aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2016-04-12 22:59:20 +0000
committerEd Maste <emaste@FreeBSD.org>2016-04-12 22:59:20 +0000
commit63fdc0188d4236a62db75a1537a20d095d4b1ab1 (patch)
tree4a15e4b09ad5606f2939448db255fa217097af87 /lib
parent7d5e656214386ff9c711f62af262c227cbc74f68 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/setproctitle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/setproctitle.c b/lib/libc/gen/setproctitle.c
index 9dff3287102e..2cde895b5e46 100644
--- a/lib/libc/gen/setproctitle.c
+++ b/lib/libc/gen/setproctitle.c
@@ -134,7 +134,7 @@ setproctitle(const char *fmt, ...)
len = sizeof(ul_ps_strings);
if (sysctlbyname("kern.ps_strings", &ul_ps_strings, &len, NULL,
0) == -1)
- ul_ps_strings = PS_STRINGS;
+ return;
ps_strings = (struct ps_strings *)ul_ps_strings;
}