]> git.ipfire.org Git - thirdparty/lldpd.git/commit
marshal: avoid NULL pointer arithmetic fix/null-arithmetic 298/head
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:20:43 +0000 (15:20 +0200)
commitd784d752614712b8008edc6fcea5f69f39195b7b
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