edje: we never call perror.
authorCedric BAIL <cedric.bail@free.fr>
Thu, 8 Dec 2011 16:21:49 +0000 (16:21 +0000)
committerCedric BAIL <cedric.bail@free.fr>
Thu, 8 Dec 2011 16:21:49 +0000 (16:21 +0000)
SVN revision: 66041

legacy/edje/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;