mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Check for a zero-length as well as a NULL string argument.
This commit is contained in:
parent
47a8315e54
commit
e524a581b1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40731
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user