Yosuke Iwamatsu
2009-Feb-04 07:54 UTC
[Xen-devel] [PATCH] ioemu: Slightly improve error check in xenstore_vm_write()
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com> diff --git a/xenstore.c b/xenstore.c index d30dafa..6bfcdbb 100644 --- a/xenstore.c +++ b/xenstore.c @@ -1224,6 +1224,8 @@ int xenstore_vm_write(int domid, const char *key, const char *value) int rc = -1; path = xenstore_vm_key_path(domid, key); + if (!path) + return 0; rc = xs_write(xsh, XBT_NULL, path, value, strlen(value)); if (rc == 0) { _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel