dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
Brian Stinson 2593d8
From 5d7e8cb0e12e4642a760cf00cbb6caf4c07b9cd9 Mon Sep 17 00:00:00 2001
Brian Stinson 2593d8
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Brian Stinson 2593d8
Date: Sun, 19 May 2019 16:05:02 +0200
Brian Stinson 2593d8
Subject: [PATCH] core/dbus-execute: remove unnecessary initialization
Brian Stinson 2593d8
Brian Stinson 2593d8
(cherry picked from commit bd0abfaea1514bdd7cb60228d7a3f94c17ba916d)
Brian Stinson 2593d8
Brian Stinson 2593d8
Related: #1734787
Brian Stinson 2593d8
---
Brian Stinson 2593d8
 src/core/dbus-execute.c | 2 +-
Brian Stinson 2593d8
 1 file changed, 1 insertion(+), 1 deletion(-)
Brian Stinson 2593d8
Brian Stinson 2593d8
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
Brian Stinson 2593d8
index 33a91c012e..5379545d57 100644
Brian Stinson 2593d8
--- a/src/core/dbus-execute.c
Brian Stinson 2593d8
+++ b/src/core/dbus-execute.c
Brian Stinson 2593d8
@@ -1552,7 +1552,7 @@ int bus_exec_context_set_transient_property(
Brian Stinson 2593d8
 #endif
Brian Stinson 2593d8
         if (streq(name, "CPUAffinity")) {
Brian Stinson 2593d8
                 const void *a;
Brian Stinson 2593d8
-                size_t n = 0;
Brian Stinson 2593d8
+                size_t n;
Brian Stinson 2593d8
 
Brian Stinson 2593d8
                 r = sd_bus_message_read_array(message, 'y', &a, &n);
Brian Stinson 2593d8
                 if (r < 0)