debuggers.hg

changeset 22060:e87c73b32c1b

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>
author Ian Campbell <ian.campbell@citrix.com>
date Mon Aug 16 15:31:05 2010 +0100 (2010-08-16)
parents 251dae6ee4a9
children c82f7f4ee9b7
files tools/libxl/libxl_xshelp.c
line diff
     1.1 --- a/tools/libxl/libxl_xshelp.c	Mon Aug 16 15:31:05 2010 +0100
     1.2 +++ b/tools/libxl/libxl_xshelp.c	Mon Aug 16 15:31:05 2010 +0100
     1.3 @@ -110,10 +110,9 @@ int libxl_xs_write(libxl_gc *gc, xs_tran
     1.4  char * libxl_xs_read(libxl_gc *gc, xs_transaction_t t, char *path)
     1.5  {
     1.6      libxl_ctx *ctx = libxl_gc_owner(gc);
     1.7 -    unsigned int len;
     1.8      char *ptr;
     1.9  
    1.10 -    ptr = xs_read(ctx->xsh, t, path, &len);
    1.11 +    ptr = xs_read(ctx->xsh, t, path, NULL);
    1.12      if (ptr != NULL) {
    1.13          libxl_ptr_add(gc, ptr);
    1.14          return ptr;