diff options
Diffstat (limited to 'lib/skin_parser')
-rw-r--r-- | lib/skin_parser/skin_debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/skin_parser/skin_debug.c b/lib/skin_parser/skin_debug.c index a09cd673c7..ce5af7d0c9 100644 --- a/lib/skin_parser/skin_debug.c +++ b/lib/skin_parser/skin_debug.c | |||
@@ -296,6 +296,8 @@ void skin_error_format_message() | |||
296 | { | 296 | { |
297 | int i; | 297 | int i; |
298 | char text[128]; | 298 | char text[128]; |
299 | if (!error_line_start) | ||
300 | return; | ||
299 | char* line_end = strchr(error_line_start, '\n'); | 301 | char* line_end = strchr(error_line_start, '\n'); |
300 | int len = MIN(line_end - error_line_start, 80); | 302 | int len = MIN(line_end - error_line_start, 80); |
301 | if (!line_end) | 303 | if (!line_end) |