]> git.saurik.com Git - apt.git/blobdiff - test/libapt/cdrom_test.cc
Merge branch 'debian/experimental' into feature/srv-records
[apt.git] / test / libapt / cdrom_test.cc
index 5cf3b353cf1f450e7d7832867b838319389ed99d..7257eaf1b5aabb4179641ed949cda9f3f356346b 100644 (file)
@@ -109,6 +109,7 @@ TEST(CDROMTest, FindMountPointForDevice)
    EXPECT_EQ("/boot/efi", FindMountPointForDevice("/dev/sda1"));
    EXPECT_EQ("/tmp", FindMountPointForDevice("tmpfs"));
 
-   unlink(tempfile);
+   if (tempfile !=  NULL)
+      unlink(tempfile);
    free(tempfile);
 }