X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Finline.c;h=71fe1b6cd022a1d7c48316709dc5388167fc57ba;hp=ace801b39b997c56632b85de1ae2c29c86ec1aeb;hb=e4c6861efeeea654bfb00c5f0239ee258629d77f;hpb=ac13dceecd5f75669820819575daf88e0add5c8d diff --git a/index/inline.c b/index/inline.c index ace801b..71fe1b6 100644 --- a/index/inline.c +++ b/index/inline.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) 2004-2013 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -58,7 +58,7 @@ void inline_destroy_field(inline_field *p) static inline_subfield *inline_mk_subfield(inline_subfield *parent) { inline_subfield *p = (inline_subfield *)xmalloc(sizeof(*p)); - + if (p) { memset(p, 0, sizeof(*p)); @@ -98,10 +98,10 @@ int inline_parse(inline_field *pif, const char *tag, const char *s) { inline_field *pf = pif; char *p = (char *)s; - + if (!pf) return -1; - + if (pf->name[0] == '\0') { if ((sscanf(p, "%3s", pf->name)) != 1) @@ -123,10 +123,10 @@ int inline_parse(inline_field *pif, const char *tag, const char *s) else { inline_subfield *psf = inline_mk_subfield(0); - + sscanf(tag, "%1s", psf->name); psf->data = xstrdup(p); - + if (!pf->list) { pf->list = psf;