Commit d635a042 authored by Johnny Jazeix's avatar Johnny Jazeix

Fix bug #10475 : Segfault when loading some files.

parent f30434c8
......@@ -231,7 +231,9 @@ int PajeFileManager::get_line(PajeLine *lineptr) {
}
// We remove the last token if it is empty
if ( _tokens[itks-1][0] == '\0' )
if(itks == 0)
_tokens[itks][0] == '\0';
else if (_tokens[itks-1][0] == '\0')
itks--;
_nbtks = itks;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment