Fix crash parsing bad mission file
This commit is contained in:
parent
e72f293ba3
commit
e19d43f92f
|
@ -327,12 +327,10 @@ static void add_term(char *s)
|
|||
//adds 0 after parm at first white space
|
||||
static char *get_value(char *buf)
|
||||
{
|
||||
char *t;
|
||||
|
||||
t = strchr(buf,'=')+1;
|
||||
char *t = strchr(buf,'=');
|
||||
|
||||
if (t) {
|
||||
while (*t && isspace(*t)) t++;
|
||||
while (isspace(static_cast<unsigned>(*++t)));
|
||||
|
||||
if (*t)
|
||||
return t;
|
||||
|
|
Loading…
Reference in a new issue