From 6b8d739e7c68237499366546eb41bc4cb3fff9d4 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 31 Oct 2013 23:51:47 -0500 Subject: [PATCH] new_wim_struct(): Don't dereference NULL in out-of-memory case --- src/wim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wim.c b/src/wim.c index 3676123a..e1cda332 100644 --- a/src/wim.c +++ b/src/wim.c @@ -70,8 +70,8 @@ new_wim_struct(void) if (wim) { wim->in_fd.fd = -1; wim->out_fd.fd = -1; + INIT_LIST_HEAD(&wim->subwims); } - INIT_LIST_HEAD(&wim->subwims); return wim; } -- 2.43.0