]> git.ipfire.org Git - thirdparty/bind9.git/commit
silence clang warning by using local variable.
authorMark Andrews <marka@isc.org>
Tue, 1 Oct 2019 04:06:53 +0000 (14:06 +1000)
committerMark Andrews <marka@isc.org>
Fri, 4 Oct 2019 01:36:19 +0000 (11:36 +1000)
commitb997237f4956e26349f7cece4cbf58afc1dfb901
tree2ed3132030e9df985deb19446b3277b5b11585f0
parent418b340a8f1f3a5c23d5f2a36be5ca9265a8f167
silence clang warning by using local variable.

'isc_commandline_index' is a global variable so it can theoretically
change result between if expressions.  Save 'argv[isc_commandline_index]'
to local variable 'arg1' and use 'arg1 == NULL' in if expressions
instead of 'argc < isc_commandline_index + 1'.  This allows clang
to correctly determine what code is reachable.

(cherry picked from commit 1b27ab8642a43617d1359375d1cff7afd5bd79e3)
bin/dnssec/dnssec-dsfromkey.c