[systemd-commits] src/libsystemd
Tom Gundersen
tomegun at kemper.freedesktop.org
Tue Sep 2 04:03:06 PDT 2014
src/libsystemd/sd-rtnl/rtnl-message.c | 1 -
1 file changed, 1 deletion(-)
New commits:
commit cedc611207b6a14cdbaf1d73e12b62ee55cc53de
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 1 22:59:52 2014 +0200
sd-rtnl: don't assign to unused variable
Reported by Thomas H.P. Andersen <phomes at gmail.com>.
diff --git a/src/libsystemd/sd-rtnl/rtnl-message.c b/src/libsystemd/sd-rtnl/rtnl-message.c
index 906a9de..30e3358 100644
--- a/src/libsystemd/sd-rtnl/rtnl-message.c
+++ b/src/libsystemd/sd-rtnl/rtnl-message.c
@@ -531,7 +531,6 @@ static int add_rtattr(sd_rtnl_message *m, unsigned short type, const void *data,
/* if no data was passed, make sure we still initialize the padding
note that we can have data_length > 0 (used by some containers) */
padding = RTA_DATA(rta);
- data_length = 0;
}
/* make sure also the padding at the end of the message is initialized */
More information about the systemd-commits
mailing list