eina: Eina_Prefix should never contain a NULL, no code expect it.
authorCedric Bail <cedric@osg.samsung.com>
Thu, 5 Oct 2017 03:57:08 +0000 (20:57 -0700)
committerCedric Bail <cedric@osg.samsung.com>
Thu, 5 Oct 2017 03:57:08 +0000 (20:57 -0700)
src/lib/eina/eina_prefix.c

index 26f07f8..710e949 100644 (file)
@@ -399,6 +399,7 @@ _get_env_var(char **var, const char *envprefix, const char *envsuffix, const cha
    else
      {
         DBG("No env %s_PREFIX or %s for dir '%s'", envprefix, env, dir);
+        STRDUP_REP(*var, "");
         return 0;
      }
 }