]> xenbits.xensource.com Git - people/dstodden/blktap.git/commitdiff
x-chain: zero regex pointers to avoid regfree()'ing garbage
authorAndrei Lifchits <andrei.lifchits@citrix.com>
Thu, 31 Mar 2011 18:29:02 +0000 (19:29 +0100)
committerAndrei Lifchits <andrei.lifchits@citrix.com>
Thu, 31 Mar 2011 18:29:02 +0000 (19:29 +0100)
drivers/tapdisk-image.c

index 215da2b56e37158c674dcaf3582c138593428c89..fe23c1e4b47d9fd87d4fce150862372d046cf871 100644 (file)
@@ -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;