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:
Ondřej Surý 2020-03-25 17:00:07 +01:00
parent 969cb06e15
commit e3acfedbe3

View file

@ -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;
}