|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 08 of 26] libxl: ensure result of libxl_poolid_to_nam
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1281969065 -3600
# Node ID 9933762e16944f88d2e3a1637584d503d2b051ed
# Parent 3b7826a70148e2bf1e2bc9eecd7623a1f23a95fc
libxl: ensure result of libxl_poolid_to_name is always dynamically allocated
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 3b7826a70148 -r 9933762e1694 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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 26] libxl: autogenerate type definitions and destructor functions, Ian Campbell
- [Xen-devel] [PATCH 07 of 26] lbixl: make libxl_device_model_starting type opaque to users of libxl, Ian Campbell
- [Xen-devel] [PATCH 08 of 26] libxl: ensure result of libxl_poolid_to_name is always dynamically allocated,
Ian Campbell <=
- [Xen-devel] [PATCH 01 of 26] xl: use the regular implicit rules to build the xl .o files, Ian Campbell
- [Xen-devel] [PATCH 02 of 26] libxl: define specific types for string list and key, value list, Ian Campbell
- [Xen-devel] [PATCH 05 of 26] libxl: add specific type for hwcaps, Ian Campbell
- [Xen-devel] [PATCH 04 of 26] libxl: add specific type for cpumap, Ian Campbell
- [Xen-devel] [PATCH 06 of 26] libxl: make libxl_console_reader type opaque to users of libxl, Ian Campbell
- [Xen-devel] [PATCH 10 of 26] libxl: tweak formatting/whitespace of _libxl_types.h, Ian Campbell
- [Xen-devel] [PATCH 15 of 26] libxl: do not generate a destructor for data types which do not require one, Ian Campbell
- [Xen-devel] [PATCH 09 of 26] libxl: move type definitions into _libxl_types.h, Ian Campbell
- [Xen-devel] [PATCH 03 of 26] libxl: move various enum and #defines above datastructure definitions, Ian Campbell
- [Xen-devel] [PATCH 12 of 26] libxl: generate destructors for each libxl defined type, Ian Campbell
|
|
|
|
|