Check for a zero-length as well as a NULL string argument.

This commit is contained in:
Robert Nordier 1998-10-29 14:40:20 +00:00
parent 47a8315e54
commit e524a581b1
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ perror(s)
struct iovec iov[4];
v = iov;
if (s != NULL) {
if (s != NULL && *s != '\0') {
v->iov_base = (char *)s;
v->iov_len = strlen(s);
v++;