]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
config: Compare with NULL in parse_env_string to please IRIX's compiler
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 8 Apr 2012 15:20:06 +0000 (17:20 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 8 Apr 2012 15:20:06 +0000 (17:20 +0200)
conf.c

diff --git a/conf.c b/conf.c
index 24558cb9198ee75880167d838ddc1e16eb677d16..6c248534e30aa0364ecc99289a9495e5bdcb419c 100644 (file)
--- a/conf.c
+++ b/conf.c
@@ -58,7 +58,7 @@ parse_env_string(const char *str, void *result, char **errmsg)
        char **value = (char **)result;
        free(*value);
        *value = subst_env_in_string(str, errmsg);
-       return *value;
+       return *value != NULL;
 }
 
 static bool