1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

Forgot one change, Daniel

This commit is contained in:
Daniel Veillard 2007-09-30 13:17:45 +00:00
parent 9f211bbf3a
commit ab0f561de6

View File

@ -2683,7 +2683,7 @@ virNodeGetCellsFreeMemory(virConnectPtr conn, unsigned long long *freeMems,
return (-1);
}
if ((freeMems == NULL) || (maxCells <= 0)) {
if ((freeMems == NULL) || (maxCells <= 0) || (startCell < 0)) {
virLibConnError(conn, VIR_ERR_INVALID_ARG, __FUNCTION__);
return (-1);
}