mirror of https://gitee.com/openkylin/libvirt.git
build: avoid warning about return-with-value in void function
* tools/virsh.c: Just "return;", not "return NULL;".
This commit is contained in:
parent
7ca954cf26
commit
303cf4dbff
|
@ -360,7 +360,7 @@ virshReportError(vshControl *ctl)
|
|||
* no error was ever raised, so just ignore */
|
||||
last_error = virSaveLastError();
|
||||
if (!last_error || last_error->code == VIR_ERR_OK)
|
||||
return NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
if (last_error->code == VIR_ERR_OK) {
|
||||
|
|
Loading…
Reference in New Issue