From: Emden R. Gansner Date: Thu, 11 Jul 2013 15:26:36 +0000 (-0400) Subject: Fix bug 2292 X-Git-Tag: LAST_LIBGRAPH~32^2~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68cee3111f5cbbd2434431a70bf57797eee66db1;p=graphviz Fix bug 2292 --- diff --git a/lib/common/utils.c b/lib/common/utils.c index 19ed3b4f2..aa67f4c25 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -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; }