diff options
-rw-r--r-- | nxcomp/src/Log.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nxcomp/src/Log.h b/nxcomp/src/Log.h index 9781ec8b2..d0ea627fa 100644 --- a/nxcomp/src/Log.h +++ b/nxcomp/src/Log.h @@ -509,7 +509,14 @@ bool has_newline(T value) template <char*> static bool has_newline(char *value) { - return strstr(value, "\n") != NULL; + if (value) + { + return strstr(value, "\n") != NULL; + } + else + { + return false; + } } template <char> |