X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Frpnsearch.c;h=9aee46e9453e0b6d60c6933b6ebeaacc3d3ddfe1;hp=1109a60fba097e1e0a6c5455a5f8bb9c0da5c274;hb=e2e073b5c947e996304ed7d577497af5e9a879ee;hpb=7f3a620e04f55c3d2bb77189beb4eddaaa33ec5c diff --git a/index/rpnsearch.c b/index/rpnsearch.c index 1109a60..9aee46e 100644 --- a/index/rpnsearch.c +++ b/index/rpnsearch.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 2004-2013 Index Data + Copyright (C) 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 @@ -187,7 +187,7 @@ static void esc_str(char *out_buf, size_t out_size, assert(in_buf); assert(out_size > 20); *out_buf = '\0'; - for (k = 0; kspecs = (Z_SortKeySpec **) nmem_malloc(stream, sort_sequence->num_specs * sizeof(*sort_sequence->specs)); - for (i = 0; inum_specs; i++) + for (i = 0; i < sort_sequence->num_specs; i++) sort_sequence->specs[i] = 0; } if (zapt->term->which != Z_Term_general) @@ -2155,7 +2155,7 @@ static RSET xpath_trunc(ZebraHandle zh, NMEM stream, const char *flags = "void"; wrbuf_putc(term_dict, '('); - for (i = 0; i