X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsortspec.c;h=1eb3845cd909c5378bac7527de292f50d9143f66;hp=0cdef3373e347a5b88448f4b625319f4a6f293d1;hb=8cb8947e3a7bff4dbf8f124871cb4905df1adce7;hpb=cabcc223cd47503763e7c42969e3be30c58276af diff --git a/src/sortspec.c b/src/sortspec.c index 0cdef33..1eb3845 100644 --- a/src/sortspec.c +++ b/src/sortspec.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ /** @@ -121,11 +121,7 @@ Z_SortKeySpecList *yaz_sort_spec(ODR out, const char *arg) odr_malloc(out, sizeof(Odr_oct)); i++; sks->u.missingValueData->len = strlen(sort_flags+i); -#if OCT_SIZE - sks->u.missingValueData->size = sks->u.missingValueData->len; -#endif - sks->u.missingValueData->buf = (unsigned char*) - odr_strdup(out, sort_flags+i); + sks->u.missingValueData->buf = odr_strdup(out, sort_flags+i); i += strlen(sort_flags+i) - 1; break; }