about summary refs log tree commit homepage
path: root/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'cfg.c')
-rw-r--r--cfg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cfg.c b/cfg.c
index c689aa3..a87500f 100644
--- a/cfg.c
+++ b/cfg.c
@@ -53,8 +53,7 @@ static void cfg_atexit(void)
 __attribute__((constructor)) static void cfg_init(void)
 {
         all_cfg = hash_initialize(7, NULL, cfg_hash, cfg_cmp, cfg_free);
-        if (!all_cfg)
-                mog_oom();
+        mog_oom_if_null(all_cfg);
 
         atexit(cfg_atexit);
 }