[babl] babl: do not load cache if BABL_INHIBIT_CACHE is set in environment
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl: do not load cache if BABL_INHIBIT_CACHE is set in environment
- Date: Thu, 27 Jan 2022 07:51:44 +0000 (UTC)
commit 1dad45b5ea68145f742d1a1ab320b24fe16c5a1f
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Jan 27 05:38:47 2022 +0100
babl: do not load cache if BABL_INHIBIT_CACHE is set in environment
babl/babl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/babl/babl.c b/babl/babl.c
index 515fa09b0..141396f9b 100644
--- a/babl/babl.c
+++ b/babl/babl.c
@@ -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 ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]