[pacman-dev] [PATCH] avoid printing NULL string
Andrew Gregory
andrew.gregory.8 at gmail.com
Sat Dec 16 17:41:10 UTC 2017
Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
lib/libalpm/be_sync.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index 06f509a6..1b7c8b6f 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -626,9 +626,9 @@ static int sync_db_read(alpm_db_t *db, struct archive *archive,
if(filename == NULL) {
/* A file exists outside of a subdirectory. This isn't a read error, so return
* success and try to continue on. */
_alpm_log(db->handle, ALPM_LOG_WARNING, _("unknown database file: %s\n"),
- filename);
+ entryname);
return 0;
}
if(strcmp(filename, "desc") == 0 || strcmp(filename, "depends") == 0
--
2.15.1
More information about the pacman-dev
mailing list