From 68cee3111f5cbbd2434431a70bf57797eee66db1 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Thu, 11 Jul 2013 11:26:36 -0400 Subject: [PATCH] Fix bug 2292 --- lib/common/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.40.0