提交 4ffe066d 编写于 作者: D Daniel Veillard

* src/virsh.c: add error messages for negative memory size as

  pointed out by Masayuki Sunou
Daniel
上级 633a3bef
Tue Mar 20 16:40:06 CET 2007 Daniel Veillard <veillard@redhat.com>
* src/virsh.c: add error messages for negative memory size as
pointed out by Masayuki Sunou
Tue Mar 20 16:30:29 CET 2007 Daniel Veillard <veillard@redhat.com>
* src/xen_internal.c: applied patch from Atsushi SAKAI fixing
......
......@@ -1461,6 +1461,7 @@ cmdSetmem(vshControl * ctl, vshCmd * cmd)
bytes = vshCommandOptInt(cmd, "bytes", &bytes);
if (bytes <= 0) {
virDomainFree(dom);
vshError(ctl, FALSE, _("Invalid value of %d for memory size"), bytes);
return FALSE;
}
......@@ -1504,6 +1505,7 @@ cmdSetmaxmem(vshControl * ctl, vshCmd * cmd)
bytes = vshCommandOptInt(cmd, "bytes", &bytes);
if (bytes <= 0) {
virDomainFree(dom);
vshError(ctl, FALSE, _("Invalid value of %d for memory size"), bytes);
return FALSE;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册