aboutsummaryrefslogtreecommitdiff
path: root/procname.c
diff options
context:
space:
mode:
Diffstat (limited to 'procname.c')
-rw-r--r--procname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procname.c b/procname.c
index ee9b99dc..5d3bc306 100644
--- a/procname.c
+++ b/procname.c
@@ -96,7 +96,7 @@ get_proc_name(int fd, char *tty)
retry:
if (sysctl(mib, nitems(mib), NULL, &len, NULL, 0) == -1)
- return (NULL);
+ goto error;
len = (len * 5) / 4;
if ((newbuf = realloc(buf, len)) == NULL)