summaryrefslogtreecommitdiff
path: root/test/libapt
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-05-28 09:24:58 +0200
committerMichael Vogt <mvo@debian.org>2014-05-28 09:24:58 +0200
commit28ba3f89659afe95fee4175d802febf895dc15a4 (patch)
treedc43e050c6ff986394c14f22f3aa4eab9cd68c3f /test/libapt
parent7f48c4dfbb1f27c51044edde0692d7446ee74438 (diff)
Fix uninitialized value
Reported-By: scan-build
Diffstat (limited to 'test/libapt')
-rw-r--r--test/libapt/cdrom_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libapt/cdrom_test.cc b/test/libapt/cdrom_test.cc
index 626ef538e..5cf3b353c 100644
--- a/test/libapt/cdrom_test.cc
+++ b/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"