Don't check return value of alloca

alloca() doesn't return NULL on error, so do not check its return value.



SVN revision: 52199
This commit is contained in:
Lucas De Marchi 2010-09-13 18:40:32 +00:00
parent 2bd045dd1f
commit e46b64199f
1 changed files with 59 additions and 63 deletions

View File

@ -968,19 +968,16 @@ _edje_emit(Edje *ed, const char *sig, const char *src)
*/
if (sep)
{
char *idx;
char *idx, *newsig;
size_t length;
char *part;
unsigned int i;
/* the signal contains a colon, split the signal into "part:signal",
* and deliver it to "part" (if there is a GROUP or EXTERNAL part named "part")
*/
length = strlen(sig) + 1;
part = alloca(length);
if (part)
{
char *newsig;
unsigned int i;
memcpy(part, sig, length);
/* The part contain a [index], retrieve it */
@ -1044,7 +1041,6 @@ _edje_emit(Edje *ed, const char *sig, const char *src)
}
}
}
}
emsg.sig = sig;
emsg.src = src;