aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_xshelp.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-08-16 15:31:05 +0100
committerIan Campbell <ian.campbell@citrix.com>2010-08-16 15:31:05 +0100
commit6d064404a2e9dcfd1fb79ec647b953ca9b4ce430 (patch)
tree1858a840c4fcacf5e97e5cdf6a5e6dff8ef2581f /tools/libxl/libxl_xshelp.c
parente04488a1f90075212ad733c9df22c923ef9d4c57 (diff)
downloadxen-6d064404a2e9dcfd1fb79ec647b953ca9b4ce430.tar.gz
xen-6d064404a2e9dcfd1fb79ec647b953ca9b4ce430.tar.bz2
xen-6d064404a2e9dcfd1fb79ec647b953ca9b4ce430.zip
libxl: xs_read accepts NULL for *len parameter
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_xshelp.c')
-rw-r--r--tools/libxl/libxl_xshelp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/libxl/libxl_xshelp.c b/tools/libxl/libxl_xshelp.c
index 90acd5d045..cfd7be3cb5 100644
--- a/tools/libxl/libxl_xshelp.c
+++ b/tools/libxl/libxl_xshelp.c
@@ -110,10 +110,9 @@ int libxl_xs_write(libxl_gc *gc, xs_transaction_t t,
char * libxl_xs_read(libxl_gc *gc, xs_transaction_t t, char *path)
{
libxl_ctx *ctx = libxl_gc_owner(gc);
- unsigned int len;
char *ptr;
- ptr = xs_read(ctx->xsh, t, path, &len);
+ ptr = xs_read(ctx->xsh, t, path, NULL);
if (ptr != NULL) {
libxl_ptr_add(gc, ptr);
return ptr;