From: Sebastian Hammer Date: Tue, 20 Mar 2007 03:42:53 +0000 (+0000) Subject: Fixed statement before declaration X-Git-Tag: stable.27032007~16 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=1e4a10d60202e59a931594553074d19061c4223c;p=pazpar2-moved-to-github.git Fixed statement before declaration --- 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"))