]> git.saurik.com Git - apt.git/commitdiff
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 626ef538e5364c61d38e0e7c551693d0c3fd0be8..5cf3b353cf1f450e7d7832867b838319389ed99d 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"