if alloca fails you're screwed anyway, so not much point checking for it
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 14 Jan 2011 02:32:45 +0000 (02:32 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 14 Jan 2011 02:32:45 +0000 (02:32 +0000)
SVN revision: 56082

legacy/ecore/src/lib/ecore_con/ecore_con_info.c

index 1d45712..a1dad6b 100644 (file)
@@ -250,7 +250,7 @@ ecore_con_info_get(Ecore_Con_Server *svr,
              tosend_len = sizeof(Ecore_Con_Info) + result->ai_addrlen +
                canonname_len;
 
-             if (!(tosend = alloca(tosend_len))) goto on_error;
+             tosend = alloca(tosend_len);
              memset(tosend, 0, tosend_len);
 
              container = (Ecore_Con_Info *)tosend;