From e7edefc272a6c484ee206750c4b2896f46ab25b0 Mon Sep 17 00:00:00 2001 From: ellson Date: Sat, 11 Jun 2011 14:54:56 +0000 Subject: [PATCH] Fix #0001930 --- lib/gvc/gvconfig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/gvc/gvconfig.c b/lib/gvc/gvconfig.c index 119db0b79..dc3d57820 100644 --- a/lib/gvc/gvconfig.c +++ b/lib/gvc/gvconfig.c @@ -406,6 +406,7 @@ static void config_rescan(GVC_t *gvc, char *config_path) f = fopen(config_path,"w"); if (!f) { agerr(AGERR,"failed to open %s for write.\n", config_path); + exit(1); } fprintf(f, "# This file was generated by \"dot -c\" at time of install.\n\n"); @@ -537,7 +538,7 @@ void gvconfig(GVC_t * gvc, boolean rescan) f = fopen(gvc->config_path,"r"); if (!f) { agerr (AGERR,"failed to open %s for read.\n", gvc->config_path); - exit(1); + return; } else { config_text = gmalloc(config_st.st_size + 1); -- 2.40.0