From a2e497cac1f6b6961c7aa0b110dbc844b70565d1 Mon Sep 17 00:00:00 2001 From: Andrei Lifchits Date: Thu, 31 Mar 2011 19:29:02 +0100 Subject: [PATCH] x-chain: zero regex pointers to avoid regfree()'ing garbage --- drivers/tapdisk-image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tapdisk-image.c b/drivers/tapdisk-image.c index 215da2b..fe23c1e 100644 --- a/drivers/tapdisk-image.c +++ b/drivers/tapdisk-image.c @@ -355,7 +355,7 @@ tapdisk_image_open_x_chain(const char *path, struct list_head *_head) { struct list_head head = LIST_HEAD_INIT(head); td_image_t *image = NULL, *next; - regex_t _im, *im, _ws, *ws; + regex_t _im, *im = NULL, _ws, *ws = NULL; FILE *s; int err; -- 2.39.5