summaryrefslogtreecommitdiff
path: root/legacy/edje
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-09-11 03:37:40 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-09-11 03:37:40 +0000
commita69160bb08a5b9c0ae616e3ac960dbe76bee0ff8 (patch)
tree84ef32c4423e8c4f70efed067e860e11780e7c78 /legacy/edje
parent704cfbe1b59c58f46eb4d797b39a3481301f4704 (diff)
edje: remove useless check of alloca return.
SVN revision: 76426
Diffstat (limited to 'legacy/edje')
-rw-r--r--legacy/edje/src/bin/edje_cc_parse.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/legacy/edje/src/bin/edje_cc_parse.c b/legacy/edje/src/bin/edje_cc_parse.c
index 4df91106aa..2a3295da16 100644
--- a/legacy/edje/src/bin/edje_cc_parse.c
+++ b/legacy/edje/src/bin/edje_cc_parse.c
@@ -287,12 +287,6 @@ next_token(char *p, char *end, char **new_p, int *delim)
287 } 287 }
288 l = pp - p; 288 l = pp - p;
289 tmpstr = alloca(l + 1); 289 tmpstr = alloca(l + 1);
290 if (!tmpstr)
291 {
292 ERR("%s:%i malloc %i bytes failed",
293 file_in, line - 1, l + 1);
294 exit(-1);
295 }
296 strncpy(tmpstr, p, l); 290 strncpy(tmpstr, p, l);
297 tmpstr[l] = 0; 291 tmpstr[l] = 0;
298 l = sscanf(tmpstr, "%*s %i \"%[^\"]\"", &nm, fl); 292 l = sscanf(tmpstr, "%*s %i \"%[^\"]\"", &nm, fl);