diff options
author | Thomas Haller <thaller@redhat.com> | 2018-04-11 10:48:16 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-04-11 10:48:44 (GMT) |
commit | bb446bc1164ebc6056097a79a96b532845e268c8 (patch) | |
tree | 5e62775f35e7c3841edcedd181ffaf18eaa4cad2 /lib/msg.c | |
parent | dc61768ec6e392543113863517a74858a74212ab (diff) | |
download | libnl-bb446bc1164ebc6056097a79a96b532845e268c8.zip libnl-bb446bc1164ebc6056097a79a96b532845e268c8.tar.gz libnl-bb446bc1164ebc6056097a79a96b532845e268c8.tar.bz2 |
nl-msg: explicitly initialize nlmsg_seq and nlmsg_pid field in nlmsg_alloc_simple()
This is no change in behavior, because the NL_AUTO_* macros are both
zero.
Diffstat (limited to 'lib/msg.c')
-rw-r--r-- | lib/msg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -350,6 +350,8 @@ struct nl_msg *nlmsg_alloc_simple(int nlmsgtype, int flags) struct nlmsghdr nlh = { .nlmsg_type = nlmsgtype, .nlmsg_flags = flags, + .nlmsg_seq = NL_AUTO_SEQ, + .nlmsg_pid = NL_AUTO_PID, }; msg = nlmsg_inherit(&nlh); |