about summary refs log tree commit homepage
path: root/inherit.c
diff options
context:
space:
mode:
Diffstat (limited to 'inherit.c')
-rw-r--r--inherit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/inherit.c b/inherit.c
index da3c852..75d3050 100644
--- a/inherit.c
+++ b/inherit.c
@@ -131,8 +131,7 @@ void mog_inherit_init(void)
                 return;
 
         listeners = hash_initialize(3, NULL, listener_hash, listener_cmp, free);
-        if (!listeners)
-                die("failed to initialize inherited listeners hash");
+        mog_oom_if_null(listeners);
         atexit(listeners_cleanup);
 
         fds = xstrdup(orig);