dhcp: Don't pass NULL to memcmp() even with size 0.
authorBen Pfaff <blp@nicira.com>
Wed, 10 Feb 2010 19:29:58 +0000 (11:29 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 11 Feb 2010 18:33:11 +0000 (10:33 -0800)
commit413f274f20bd7e614e144b512b38984d1e9f28b3
tree5dcb5dc54829ae49f6da902e55e17d04644d0693
parentf446d59b369ec2c5df79ee3589c50eb22f949a63
dhcp: Don't pass NULL to memcmp() even with size 0.

ISO C says that the arguments to memcmp() must be nonnull even if the
size argument is 0, so don't do that.

Found by Clang (http://clang-analyzer.llvm.org).
lib/dhcp.c