Explorar el Código

Fix uninitialized value

Reported-By: scan-build
Michael Vogt hace 12 años
padre
commit
28ba3f8965
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      test/libapt/cdrom_test.cc

+ 1 - 1
test/libapt/cdrom_test.cc

@@ -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"