X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fzoom-opt.c;h=48c0da796e510a3b167efdf3fb1b2382199e18a4;hp=a1ba28bbbd234483c8048d066485fc87b3414c16;hb=9d12e94d17d3c31124221dc914aa36c9d8154643;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35 diff --git a/src/zoom-opt.c b/src/zoom-opt.c index a1ba28b..48c0da7 100644 --- a/src/zoom-opt.c +++ b/src/zoom-opt.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ /** @@ -64,7 +64,7 @@ ZOOM_API(ZOOM_options) ZOOM_options dst = ZOOM_options_create(); struct ZOOM_options_entry *src_e = src->entries; struct ZOOM_options_entry **dst_e = &dst->entries; - + while(src_e) { append_entry(dst_e, src_e->name, src_e->value, src_e->len); @@ -122,7 +122,7 @@ ZOOM_API(ZOOM_options_callback) void *callback_handle) { ZOOM_options_callback callback_old; - + assert(opt); callback_old = opt->callback_func; opt->callback_func = callback_func; @@ -139,7 +139,7 @@ ZOOM_API(void) if (opt->refcount == 0) { struct ZOOM_options_entry *e; - + ZOOM_options_destroy(opt->parent1); ZOOM_options_destroy(opt->parent2); e = opt->entries; @@ -223,7 +223,7 @@ ZOOM_API(int) ZOOM_options_get_bool(ZOOM_options opt, const char *name, int defa) { const char *v = ZOOM_options_get(opt, name); - + if (!v) return defa; if (!strcmp(v, "1") || !strcmp(v, "T"))