From 54067c390f622807b78bc1a7950db113c3a8747c Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Thu, 23 Apr 2015 16:01:16 +1000 Subject: Silence warning from clang clang is wrong - dbfile is always used initialized in that function. Signed-off-by: Allan McRae Signed-off-by: Dan McGee Signed-off-by: Allan McRae --- lib/libalpm/add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index ed29e680..e6081074 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -148,7 +148,7 @@ static int extract_db_file(alpm_handle_t *handle, struct archive *archive, struct archive_entry *entry, alpm_pkg_t *newpkg, const char *entryname) { char filename[PATH_MAX]; /* the actual file we're extracting */ - const char *dbfile; + const char *dbfile = NULL; if(strcmp(entryname, ".INSTALL") == 0) { dbfile = "install"; } else if(strcmp(entryname, ".CHANGELOG") == 0) { -- cgit v1.2.3-70-g09d2