Fix uninitialized value
authorMichael Vogt <mvo@debian.org>
Wed, 28 May 2014 07:24:58 +0000 (09:24 +0200)
committerMichael Vogt <mvo@debian.org>
Wed, 28 May 2014 07:24:58 +0000 (09:24 +0200)
Reported-By: scan-build
test/libapt/cdrom_test.cc

index 626ef53..5cf3b35 100644 (file)
@@ -91,7 +91,7 @@ TEST(CDROMTest,ReduceSourcelist)
 }
 TEST(CDROMTest, FindMountPointForDevice)
 {
-   char * tempfile;
+   char * tempfile = NULL;
    FileFd fd;
    createTemporaryFile("mountpoints", fd, &tempfile,
         "rootfs / rootfs rw 0 0\n"