ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
Zbigniew Jędrzejewski-Szmek 62fe94
From cedc611207b6a14cdbaf1d73e12b62ee55cc53de Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 62fe94
From: Tom Gundersen <teg@jklm.no>
Zbigniew Jędrzejewski-Szmek 62fe94
Date: Mon, 1 Sep 2014 22:59:52 +0200
Zbigniew Jędrzejewski-Szmek 62fe94
Subject: [PATCH] sd-rtnl: don't assign to unused variable
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
Reported by Thomas H.P. Andersen <phomes@gmail.com>.
Zbigniew Jędrzejewski-Szmek 62fe94
---
Zbigniew Jędrzejewski-Szmek 62fe94
 src/libsystemd/sd-rtnl/rtnl-message.c | 1 -
Zbigniew Jędrzejewski-Szmek 62fe94
 1 file changed, 1 deletion(-)
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
diff --git a/src/libsystemd/sd-rtnl/rtnl-message.c b/src/libsystemd/sd-rtnl/rtnl-message.c
Zbigniew Jędrzejewski-Szmek 62fe94
index 906a9de1c0..30e33584c4 100644
Zbigniew Jędrzejewski-Szmek 62fe94
--- a/src/libsystemd/sd-rtnl/rtnl-message.c
Zbigniew Jędrzejewski-Szmek 62fe94
+++ b/src/libsystemd/sd-rtnl/rtnl-message.c
Zbigniew Jędrzejewski-Szmek 62fe94
@@ -531,7 +531,6 @@ static int add_rtattr(sd_rtnl_message *m, unsigned short type, const void *data,
Zbigniew Jędrzejewski-Szmek 62fe94
                 /* if no data was passed, make sure we still initialize the padding
Zbigniew Jędrzejewski-Szmek 62fe94
                    note that we can have data_length > 0 (used by some containers) */
Zbigniew Jędrzejewski-Szmek 62fe94
                 padding = RTA_DATA(rta);
Zbigniew Jędrzejewski-Szmek 62fe94
-                data_length = 0;
Zbigniew Jędrzejewski-Szmek 62fe94
         }
Zbigniew Jędrzejewski-Szmek 62fe94
 
Zbigniew Jędrzejewski-Szmek 62fe94
         /* make sure also the padding at the end of the message is initialized */