rpm/backport-Drop-unused-filename-variable.patch

32 lines
929 B
Diff

From 8a9147f7d182e1a5aa55ac019c32a4ba765fae62 Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Wed, 10 Feb 2021 08:25:28 +0200
Subject: [PATCH] Drop unused filename variable
Conflict:NA
Reference:https://github.com/rpm-software-management/rpm/commit/8a9147f7d182e1a5aa55ac019c32a4ba765fae62
---
lib/fsm.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/fsm.c b/lib/fsm.c
index 7c291adb0..41b6267dd 100644
--- a/lib/fsm.c
+++ b/lib/fsm.c
@@ -959,11 +959,9 @@ touch:
/* On FA_TOUCH no hardlinks are created thus this is skipped. */
/* we skip the hard linked file containing the content */
/* write the content to the first used instead */
- char *fn = rpmfilesFN(files, firsthardlink);
rc = rpmfiArchiveReadToFilePsm(fi, firstlinkfile, nodigest, psm);
wfd_close(&firstlinkfile);
firsthardlink = -1;
- free(fn);
}
if (rc) {
--
2.27.0