summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-09-01 20:59:52 (GMT)
committerTom Gundersen <teg@jklm.no>2014-09-01 20:59:52 (GMT)
commitcedc611207b6a14cdbaf1d73e12b62ee55cc53de (patch)
treebfc79cdf44ab9a057030f025af9b24a99bb6e51c
parent70e7d754ddb356fb1a2942b262f8cee9650e2a19 (diff)
sd-rtnl: don't assign to unused variableHEADmaster
Reported by Thomas H.P. Andersen <phomes@gmail.com>.
-rw-r--r--src/libsystemd/sd-rtnl/rtnl-message.c1
1 files changed, 0 insertions, 1 deletions
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 */