summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2016-04-13 02:04:09 +0000
committergjb <gjb@FreeBSD.org>2016-04-13 02:04:09 +0000
commitcad5e8d3bce52708ae6b253a4427d56b4befd46c (patch)
tree92bbcf5b84bdd150282eaf6ec82e328e0e517eca /lib/libc
parent2d6ac6ea572ca93a1ff4e32936214246cc9b2551 (diff)
parent5c3b3f706fae5bed563c4681b89e06b1a2860417 (diff)
downloadFreeBSD-src-cad5e8d3bce52708ae6b253a4427d56b4befd46c.zip
FreeBSD-src-cad5e8d3bce52708ae6b253a4427d56b4befd46c.tar.gz
MFH
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'lib/libc')
-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 9dff328..2cde895 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;
}
OpenPOWER on IntegriCloud