forked from enlightenment/efl
edje/edje_cc - intensive null check.
This commit is contained in:
parent
b5ca4c3500
commit
b2841c0db6
|
@ -435,6 +435,8 @@ next_token(char *p, char *end, char **new_p, int *delim)
|
||||||
*new_p = p;
|
*new_p = p;
|
||||||
|
|
||||||
tok = mem_alloc(tok_end - tok_start + 2);
|
tok = mem_alloc(tok_end - tok_start + 2);
|
||||||
|
if (!tok) return NULL;
|
||||||
|
|
||||||
strncpy(tok, tok_start, tok_end - tok_start + 1);
|
strncpy(tok, tok_start, tok_end - tok_start + 1);
|
||||||
tok[tok_end - tok_start + 1] = 0;
|
tok[tok_end - tok_start + 1] = 0;
|
||||||
|
|
||||||
|
@ -475,7 +477,7 @@ next_token(char *p, char *end, char **new_p, int *delim)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((tok) && (*tok == '('))
|
else if (*tok == '(')
|
||||||
{
|
{
|
||||||
char *tmp;
|
char *tmp;
|
||||||
tmp = tok;
|
tmp = tok;
|
||||||
|
|
Loading…
Reference in New Issue