]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
use valloc instead of malloc; allow xfs_db/check to run on raw devices
authorRussell Cattelan <cattelan@sgi.com>
Thu, 2 Jan 2003 22:46:28 +0000 (22:46 +0000)
committerRussell Cattelan <cattelan@sgi.com>
Thu, 2 Jan 2003 22:46:28 +0000 (22:46 +0000)
db/malloc.c

index bebc13f9dc431dc2bd5c4796b3c0ad9e9cea897a..3def540966c1e239caa19b8be387978ae35764b5 100644 (file)
@@ -70,7 +70,7 @@ xmalloc(
 {
        void    *ptr;
 
-       ptr = malloc(size);
+       ptr = valloc(size);
        if (ptr)
                return ptr;
        badmalloc();