File 5001-coredump-drop-an-unused-variable.patch of Package systemd-mini

From 586dd9c159963703c952f1204bab248f92c5faab Mon Sep 17 00:00:00 2001
From: Frantisek Sumsal <frantisek@sumsal.cz>
Date: Sat, 20 Aug 2022 21:04:24 +0200
Subject: [PATCH 5001/5003] coredump: drop an unused variable

(cherry picked from commit 9abe4cfc39579037937c63602ce8fe4f51746d38)

[fbui: adjust context]
---
 src/coredump/coredump.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index f15c5ac0a0..6b9abab0c1 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -808,7 +808,7 @@ log:
 }
 
 static int save_context(Context *context, const struct iovec_wrapper *iovw) {
-        unsigned n, i, count = 0;
+        unsigned n, i;
         const char *unit;
         int r;
 
@@ -832,7 +832,6 @@ static int save_context(Context *context, const struct iovec_wrapper *iovw) {
                         p = startswith(iovec->iov_base, meta_field_names[i]);
                         if (p) {
                                 context->meta[i] = p;
-                                count++;
                                 break;
                         }
                 }
-- 
2.35.3

openSUSE Build Service is sponsored by