From: Sami Kerola Date: Mon, 29 Aug 2016 09:52:44 +0000 (+0100) Subject: warnings: do not use zero as NULL X-Git-Tag: v0.88~26^2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58a1c5377b90017553baa3d66ea2a960b0a2b501;p=thirdparty%2Fmtr.git warnings: do not use zero as NULL Found with smatch scan. --- diff --git a/mtr.c b/mtr.c index 17ae265..dc99681 100644 --- a/mtr.c +++ b/mtr.c @@ -390,7 +390,7 @@ static void parse_arg (struct mtr_ctl *ctl, int argc, char **argv) #ifdef SO_MARK { "mark", 1, NULL, 'M' }, /* use SO_MARK */ #endif - { 0, 0, 0, 0 } + { NULL, 0, NULL, 0 } }; static const size_t num_options = sizeof(long_options) / sizeof(struct option); char short_options[num_options * 2];