* lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
upon strdup failure.
+2016-10-13 Jim Meyering <meyering@fb.com>
+
+ getprogname: IBM z/OS: avoid NULL-dereference
+ * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
+ upon strdup failure.
+
2016-10-12 Jim Meyering <meyering@fb.com>
test-stdint: use _GL_VERIFY rather than "verify" for some tests
{
if (token > 0 && buf.ps_pid == pid)
{
- p = strdup (last_component (buf.ps_pathptr));
+ char *s = strdup (last_component (buf.ps_pathptr));
+ if (s)
+ p = s;
break;
}
}