Test string is NULL, not first character of string

pull/1/head
Michael Santos 9 years ago
parent e82fc91bfb
commit 633bc390cb

@ -47,7 +47,7 @@ xmppipe_strdup(const char *s)
{
char *buf = NULL;
if (!*s)
if (!s)
errx(2, "invalid string");
buf = strdup(s);

Loading…
Cancel
Save