]> granicus.if.org Git - graphviz/commitdiff
apply Fedora's graphviz-2.32.0-testsuite-sigsegv-fix.patch
authorJohn Ellson <ellson@research.att.com>
Wed, 16 Oct 2013 02:50:01 +0000 (22:50 -0400)
committerJohn Ellson <ellson@research.att.com>
Wed, 16 Oct 2013 02:50:01 +0000 (22:50 -0400)
lib/gvc/gvconfig.c

index dc3d57820f15811eda916733839e2beb38cb928b..faa9221eab0f3e431a13c3eda4b9cc9365a01138 100644 (file)
@@ -507,6 +507,7 @@ void gvconfig(GVC_t * gvc, boolean rescan)
         libdir = gvconfig_libdir(gvc);
         rc = stat(libdir, &libdir_st);
         if (rc == -1) {
+           gvtextlayout_select(gvc);   /* choose best available textlayout plugin immediately */
            /* if we fail to stat it then it probably doesn't exist so just fail silently */
            return;
         }
@@ -521,6 +522,7 @@ void gvconfig(GVC_t * gvc, boolean rescan)
         if (rescan) {
            config_rescan(gvc, gvc->config_path);
            gvc->config_found = TRUE;
+           gvtextlayout_select(gvc);   /* choose best available textlayout plugin immediately */
            return;
         }
     
@@ -528,6 +530,7 @@ void gvconfig(GVC_t * gvc, boolean rescan)
     
         rc = stat(gvc->config_path, &config_st);
         if (rc == -1) {
+           gvtextlayout_select(gvc);   /* choose best available textlayout plugin immediately */
            /* silently return without setting gvc->config_found = TRUE */
            return;
         }