[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: ensure result of libxl_poolid_to_name is always dynamically allocated
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1281969065 -3600 # Node ID 82eeb70fb65cceadbed5356ffe728d93149e1343 # Parent 0593371d0c5b9a4c48eb472d28be0ed83d36915a libxl: ensure result of libxl_poolid_to_name is always dynamically allocated Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> committer: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> --- tools/libxl/libxl_utils.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 0593371d0c5b -r 82eeb70fb65c tools/libxl/libxl_utils.c --- a/tools/libxl/libxl_utils.c Mon Aug 16 15:31:05 2010 +0100 +++ b/tools/libxl/libxl_utils.c Mon Aug 16 15:31:05 2010 +0100 @@ -97,7 +97,7 @@ char *libxl_poolid_to_name(libxl_ctx *ct char *s; if (poolid == 0) - return "Pool-0"; + return strdup("Pool-0"); snprintf(path, sizeof(path), "/local/pool/%d/name", poolid); s = xs_read(ctx->xsh, XBT_NULL, path, &len); return s; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |