mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
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>
This commit is contained in:
parent
4dbac804a3
commit
54067c390f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user