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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40731

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++;