
# HG changeset patch # User Kaitlin Rupert <karupert@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@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");