diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-11-05 18:14:04 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-11-08 14:26:00 +0100 |
commit | 4234d90d58b684824bf217d9226c50b7c9583346 (patch) | |
tree | 90b43b9294f9e3c686ee825a838fc1ce63c11cbb /test/libapt/sourcelist_test.cc | |
parent | c355ea30383486e74635cd0248d3b53ed9759c39 (diff) |
tests: silence clang on uninitilized variables
The testcases have far worse problems if these ever end up being NULL
and/or are not given a value by the method called, but clang is right to
warn about it, just that we don't want to fix it in testcases…
Git-Dch: Ignore
Diffstat (limited to 'test/libapt/sourcelist_test.cc')
-rw-r--r-- | test/libapt/sourcelist_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libapt/sourcelist_test.cc b/test/libapt/sourcelist_test.cc index eb2d76c43..747ab4957 100644 --- a/test/libapt/sourcelist_test.cc +++ b/test/libapt/sourcelist_test.cc @@ -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" |