mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Check NULL pointer to avoid SIGSEGV
This commit is contained in:
parent
11a2911cec
commit
71f2362aa4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108254
@ -450,7 +450,8 @@ MCReadCat(int fd)
|
||||
static void
|
||||
printS(int fd, const char *str)
|
||||
{
|
||||
write(fd, str, strlen(str));
|
||||
if (str)
|
||||
write(fd, str, strlen(str));
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user