]> granicus.if.org Git - graphviz/commitdiff
Fix #0001930
authorellson <devnull@localhost>
Sat, 11 Jun 2011 14:54:56 +0000 (14:54 +0000)
committerellson <devnull@localhost>
Sat, 11 Jun 2011 14:54:56 +0000 (14:54 +0000)
lib/gvc/gvconfig.c

index 119db0b7907edbe9845b152683fa1324dfa859dd..dc3d57820f15811eda916733839e2beb38cb928b 100644 (file)
@@ -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);