aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/xenstore/xenstored_domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenstore/xenstored_domain.c b/tools/xenstore/xenstored_domain.c
index bf83d5830b..f24bd6bd18 100644
--- a/tools/xenstore/xenstored_domain.c
+++ b/tools/xenstore/xenstored_domain.c
@@ -640,7 +640,7 @@ void domain_init(void)
barf_perror("Failed to allocate domain gnttab handle");
*xcg_handle = xc_gnttab_open(NULL, 0);
- if (*xcg_handle < 0)
+ if (*xcg_handle == NULL)
xprintf("WARNING: Failed to open connection to gnttab\n");
else
talloc_set_destructor(xcg_handle, close_xcg_handle);