edje: remove useless check of alloca return.

SVN revision: 76426
This commit is contained in:
Cedric BAIL 2012-09-11 03:37:40 +00:00
parent 704cfbe1b5
commit a69160bb08
1 changed files with 0 additions and 6 deletions

View File

@ -287,12 +287,6 @@ next_token(char *p, char *end, char **new_p, int *delim)
}
l = pp - p;
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);
tmpstr[l] = 0;
l = sscanf(tmpstr, "%*s %i \"%[^\"]\"", &nm, fl);