From 1e4a10d60202e59a931594553074d19061c4223c Mon Sep 17 00:00:00 2001 From: Sebastian Hammer Date: Tue, 20 Mar 2007 03:42:53 +0000 Subject: [PATCH] Fixed statement before declaration --- src/config.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index 0630185..8747af7 100644 --- a/src/config.c +++ b/src/config.c @@ -1,4 +1,4 @@ -/* $Id: config.c,v 1.15 2007-03-15 16:50:56 quinn Exp $ */ +/* $Id: config.c,v 1.16 2007-03-20 03:42:53 quinn Exp $ */ #include @@ -394,10 +394,11 @@ static struct conf_retrievalprofile *parse_retrievalprofile(xmlNode *node) static struct conf_targetprofiles *parse_targetprofiles(xmlNode *node) { struct conf_targetprofiles *r = nmem_malloc(nmem, sizeof(*r)); - memset(r, 0, sizeof(*r)); xmlChar *type = xmlGetProp(node, "type"); xmlChar *src = xmlGetProp(node, "src"); + memset(r, 0, sizeof(*r)); + if (type) { if (!strcmp(type, "local")) -- 1.7.10.4