-fix NPE
This commit is contained in:
parent
b1b943aa3e
commit
3233195d2d
@ -274,6 +274,7 @@ do_shutdown (void *cls)
|
|||||||
for (unsigned int j = 0;
|
for (unsigned int j = 0;
|
||||||
NULL != (cmd = &is->commands[j])->label;
|
NULL != (cmd = &is->commands[j])->label;
|
||||||
j++)
|
j++)
|
||||||
|
if (NULL != cmd->cleanup)
|
||||||
cmd->cleanup (cmd->cls,
|
cmd->cleanup (cmd->cls,
|
||||||
cmd);
|
cmd);
|
||||||
if (NULL != is->exchange)
|
if (NULL != is->exchange)
|
||||||
|
Loading…
Reference in New Issue
Block a user