libc -- dmalloc: Fix uninitialized variable in memrealloc(). master
authorImre Vadasz <imre@vdsz.com>
Mon, 2 Feb 2015 00:39:00 +0000 (01:39 +0100)
committerImre Vadasz <imre@vdsz.com>
Mon, 2 Feb 2015 00:39:00 +0000 (01:39 +0100)
lib/libc/stdlib/dmalloc.c

index c2bf977..36b9f2b 100644 (file)
@@ -862,7 +862,7 @@ memrealloc(void *ptr, size_t nsize)
        slab_t slab;
        size_t osize;
        char *obj;
-       int flags;
+       int flags = 0;
 
        /*
         * If 0 bytes is requested we have to return a unique pointer, allocate