fix passthrough getenv for eina mempool in ecore too.
authorCarsten Haitzler <raster@rasterman.com>
Fri, 10 Aug 2012 12:50:09 +0000 (12:50 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Fri, 10 Aug 2012 12:50:09 +0000 (12:50 +0000)
SVN revision: 75099

legacy/ecore/src/lib/ecore/ecore_alloc.c
legacy/ecore/src/lib/ecore_con/ecore_con_alloc.c

index c9e77cd..58aa131 100644 (file)
@@ -102,7 +102,7 @@ ecore_mempool_init(void)
         mempool_array[i]->mp = eina_mempool_add(choice, mempool_array[i]->name, NULL, mempool_array[i]->size, 16);
         if (!mempool_array[i]->mp)
           {
-             if (!strcmp(choice, "pass_through"))
+             if (!(!strcmp(choice, "pass_through")))
                {
                   ERR("Falling back to pass through ! Previously tried '%s' mempool.", choice);
                   choice = "pass_through";
index 68f24cc..324d47d 100644 (file)
@@ -72,7 +72,7 @@ ecore_con_mempool_init(void)
         mempool_array[i]->mp = eina_mempool_add(choice, mempool_array[i]->name, NULL, mempool_array[i]->size, 16);
         if (!mempool_array[i]->mp)
           {
-             if (strcmp(choice, "pass_through") != 0)
+             if (!(!strcmp(choice, "pass_through")))
                {
                   ERR("Falling back to pass through ! Previously tried '%s' mempool.", choice);
                   choice = "pass_through";