babl: do not load cache if BABL_INHIBIT_CACHE is set in environment
authorØyvind Kolås <pippin@gimp.org>
Thu, 27 Jan 2022 04:38:47 +0000 (05:38 +0100)
committerØyvind Kolås <pippin@gimp.org>
Thu, 27 Jan 2022 07:51:17 +0000 (08:51 +0100)
babl/babl.c

index 515fa09b0bce9f9608dce190c02bdbb4979e3742..141396f9bd9e80ff5fb9b2c42cef8a8fc8badf27 100644 (file)
@@ -158,7 +158,8 @@ babl_init (void)
       babl_extension_load_dir_list (dir_list);
       babl_free (dir_list);
 
-      babl_init_db ();
+      if (!getenv ("BABL_INHIBIT_CACHE"))
+        babl_init_db ();
     }
 }