]> git.saurik.com Git - apt.git/blobdiff - test/libapt/sourcelist_test.cc
Division by result of sizeof(). memset() expects a size in bytes
[apt.git] / test / libapt / sourcelist_test.cc
index eb2d76c43d71d01883a41629c30d3be269470699..747ab4957f7eb374616ef00b1a6251aeb433ee63 100644 (file)
@@ -20,7 +20,7 @@ class SourceList : public pkgSourceList {
 TEST(SourceListTest,ParseFileDeb822)
 {
    FileFd fd;
-   char * tempfile;
+   char * tempfile = NULL;
    createTemporaryFile("parsefiledeb822", fd, &tempfile,
       "Types: deb\n"
       "URIs: http://ftp.debian.org/debian\n"