mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 13:32:11 -04:00
Fix 'Dead nested assignment's from scan-build-10
The 1 warning reported is:
os.c:872:7: warning: Although the value stored to 'ptr' is used in the enclosing expression, the value is never actually read from 'ptr'
if ((ptr = strtok_r(command, " \t", &last)) == NULL) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
This commit is contained in:
parent
969cb06e15
commit
e3acfedbe3
1 changed files with 1 additions and 1 deletions
|
|
@ -842,7 +842,7 @@ named_os_shutdownmsg(char *command, isc_buffer_t *text) {
|
|||
|
||||
|
||||
/* Skip the command name. */
|
||||
if ((ptr = strtok_r(command, " \t", &last)) == NULL) {
|
||||
if (strtok_r(command, " \t", &last) == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue