tools/libvchan: Initialise xs_transaction_t to XBT_NULL, not NULL
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 2 Nov 2018 17:01:06 +0000 (17:01 +0000)
committerWei Liu <wei.liu2@citrix.com>
Wed, 28 Nov 2018 11:40:26 +0000 (11:40 +0000)
This is an integer type, not a pointer.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libvchan/init.c

index ba5a6eb29e83af763ecdc68030c3093e6d1052c9..180833dc2f6edb98b8c0bff88866d4e94052547f 100644 (file)
@@ -250,7 +250,7 @@ static int init_xs_srv(struct libxenvchan *ctrl, int domain, const char* xs_base
        char buf[64];
        char ref[16];
        char* domid_str = NULL;
-       xs_transaction_t xs_trans = NULL;
+       xs_transaction_t xs_trans = XBT_NULL;
        xs = xs_domain_open();
        if (!xs)
                goto fail;