Check NULL pointer to avoid SIGSEGV
This commit is contained in:
parent
11a2911cec
commit
71f2362aa4
@ -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…
x
Reference in New Issue
Block a user