]> granicus.if.org Git - graphviz/commitdiff
Fix bug 2292
authorEmden R. Gansner <erg@research.att.com>
Thu, 11 Jul 2013 15:26:36 +0000 (11:26 -0400)
committerEmden R. Gansner <erg@research.att.com>
Thu, 11 Jul 2013 15:26:36 +0000 (11:26 -0400)
lib/common/utils.c

index 19ed3b4f2bf746b05b99bb578703058adde5f767..aa67f4c25bb5bedb308d435bfdb61efccfa89ee3 100644 (file)
@@ -389,11 +389,11 @@ const char *safefile(const char *filename)
         * files only from the directory specified in
         * the GV_FILE_PATH environment variable.
         */
-       if (!Gvfilepath) {
+       if (!Gvfilepath || (*Gvfilepath == '\0')) {
            if (onetime) {
                agerr(AGWARN,
-                     "file loading is disabled because the environment contains SERVER_NAME=\"%s\"n"
-                     "and there is no GV_FILE_PATH variable set.\n",
+                     "file loading is disabled because the environment contains SERVER_NAME=\"%s\"\n"
+                     "and the GV_FILE_PATH variable is unset or empty.\n",
                      HTTPServerEnVar);
                onetime = FALSE;
            }