about summary refs log tree commit homepage
path: root/ioutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'ioutil.c')
-rw-r--r--ioutil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ioutil.c b/ioutil.c
index 9323a32..fdb9562 100644
--- a/ioutil.c
+++ b/ioutil.c
@@ -39,8 +39,7 @@ __attribute__((destructor)) static void iou_destructor(void)
 __attribute__((constructor)) static void iou_constructor(void)
 {
         dev_iou = hash_initialize(7, NULL, iou_hash, iou_cmp, free);
-        if (!dev_iou)
-                mog_oom();
+        mog_oom_if_null(dev_iou);
 }
 
 static bool cleanup_begin_i(void *ent, void *unused)