mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Check NULL pointer to avoid SIGSEGV
This commit is contained in:
parent
11a2911cec
commit
71f2362aa4
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue