edje: we never call perror.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Dec 2011 16:21:49 +0000 (16:21 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Dec 2011 16:21:49 +0000 (16:21 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@66041 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_util.c

index dbb37a7..110c423 100644 (file)
@@ -2110,11 +2110,7 @@ _edje_box_layout_external_new(const char *name, Evas_Object_Box_Layout func, voi
 
    name_len = strlen(name) + 1;
    l = malloc(sizeof(Edje_Box_Layout) + name_len);
-   if (!l)
-     {
-       perror("malloc");
-       return NULL;
-     }
+   if (!l) return NULL;
 
    l->func = func;
    l->layout_data_get = layout_data_get;