[kpartx] missing ptr init
authorChristophe Varoqui <christophe.varoqui@free.fr>
Wed, 10 Oct 2007 20:42:55 +0000 (22:42 +0200)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Wed, 10 Oct 2007 20:42:55 +0000 (22:42 +0200)
Redhat fix, pushed by Gerald Nowitzky.

kpartx/devmapper.c

index 6e3e198..3e973aa 100644 (file)
@@ -75,7 +75,7 @@ dm_addmap (int task, const char *name, const char *target,
           const char *params, unsigned long size, const char *uuid, int part) {
        int r = 0;
        struct dm_task *dmt;
-       char *prefixed_uuid;
+       char *prefixed_uuid = NULL;
 
        if (!(dmt = dm_task_create (task)))
                return 0;