X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsc.c;h=3eb6e12b17d3a96d48f8c4770ba16a7ea5e1b863;hb=3fe8d724fd45258f340a8396877aa93bd0a93d00;hp=9336e60d8a60bd42c9f3453a9c9c76af0b158208;hpb=ec7571c09ddbe4580775d3a8a60271a657ae02a6;p=yaz-moved-to-github.git diff --git a/src/sc.c b/src/sc.c index 9336e60..3eb6e12 100644 --- a/src/sc.c +++ b/src/sc.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. */ @@ -41,7 +41,7 @@ struct sc_s { yaz_sc_t yaz_sc_create(const char *service_name, const char *display_name) { - yaz_sc_t s = xmalloc(sizeof(*s)); + yaz_sc_t s = (yaz_sc_t) xmalloc(sizeof(*s)); s->service_name = service_name ? xstrdup(service_name) : 0; s->display_name = display_name ? xstrdup(display_name) : 0;