forked from enlightenment/efl
edje: remove useless check of alloca return.
SVN revision: 76426
This commit is contained in:
parent
704cfbe1b5
commit
a69160bb08
|
@ -287,12 +287,6 @@ next_token(char *p, char *end, char **new_p, int *delim)
|
||||||
}
|
}
|
||||||
l = pp - p;
|
l = pp - p;
|
||||||
tmpstr = alloca(l + 1);
|
tmpstr = alloca(l + 1);
|
||||||
if (!tmpstr)
|
|
||||||
{
|
|
||||||
ERR("%s:%i malloc %i bytes failed",
|
|
||||||
file_in, line - 1, l + 1);
|
|
||||||
exit(-1);
|
|
||||||
}
|
|
||||||
strncpy(tmpstr, p, l);
|
strncpy(tmpstr, p, l);
|
||||||
tmpstr[l] = 0;
|
tmpstr[l] = 0;
|
||||||
l = sscanf(tmpstr, "%*s %i \"%[^\"]\"", &nm, fl);
|
l = sscanf(tmpstr, "%*s %i \"%[^\"]\"", &nm, fl);
|
||||||
|
|
Loading…
Reference in New Issue