]> git.ipfire.org Git - thirdparty/lldpd.git/commit
marshal: avoid NULL pointer arithmetic
authorVincent Bernat <vincent@bernat.ch>
Mon, 24 Sep 2018 13:20:43 +0000 (15:20 +0200)
committerVincent Bernat <vincent@bernat.ch>
Mon, 24 Sep 2018 13:52:14 +0000 (15:52 +0200)
commit02f4014ff5885df929e592ae981927715964dcea
treec03aa21ab85ec087665ec409a690166e2bd435b2
parent9bf35ec4785671841e1326f6906bc2390faa8aa0
marshal: avoid NULL pointer arithmetic

This is UB and clang warns about this. Ensure we use an int of the
same size as a pointer and convert it directly.
src/marshal.c