diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/qcommon/q_shared.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qcommon/q_shared.c b/src/qcommon/q_shared.c index 2c5d76d1..f226603d 100644 --- a/src/qcommon/q_shared.c +++ b/src/qcommon/q_shared.c @@ -601,6 +601,10 @@ void SkipRestOfLine ( char **data ) { int c; p = *data; + + if ( !*p ) + return; + while ( (c = *p++) != 0 ) { if ( c == '\n' ) { com_lines++; |