Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-04-23 16:01:16 +1000
committerAllan McRae <allan@archlinux.org>2015-05-12 14:00:54 +1000
commit54067c390f622807b78bc1a7950db113c3a8747c (patch)
tree10dfbbc5023527fea8026a7d8b9877f76aa7069e /lib/libalpm
parent4dbac804a3d00a7bcc6405aa1f28cc5d1aa21f44 (diff)
Silence warning from clang
clang is wrong - dbfile is always used initialized in that function. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/add.c2
1 files changed, 1 insertions, 1 deletions
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) {