+1
On 07/30/2009 07:59 PM, Kaitlin Rupert wrote:
# HG changeset patch
# User Kaitlin Rupert<karupert(a)us.ibm.com>
# Date 1248994766 25200
# Node ID 02bb726b1ed329000ea329aac36e954f8f81f432
# Parent 88cccd3d8ef6d1e8e7c797c30ca027bce4db053f
Initialize const char * in parse_disk_pool()
Otherwise newer versions of gcc will throw a compile warning.
Signed-off-by: Kaitlin Rupert<karupert(a)us.ibm.com>
diff -r 88cccd3d8ef6 -r 02bb726b1ed3 libxkutil/pool_parsing.c
--- a/libxkutil/pool_parsing.c Wed Jul 29 15:05:20 2009 -0700
+++ b/libxkutil/pool_parsing.c Thu Jul 30 15:59:26 2009 -0700
@@ -147,8 +147,8 @@
{
xmlNode **nodes = nsv->nodeTab;
xmlNode *child;
- const char *type_str;
- const char *name;
+ const char *type_str = NULL;
+ const char *name = NULL;
int type = 0;
type_str = get_attr_value(nodes[0], "type");
_______________________________________________
Libvirt-cim mailing list
Libvirt-cim(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-cim
--
Richard Maciel, MSc
IBM Linux Technology Center
rmaciel(a)linux.vnet.ibm.com