From: oleg Date: Mon, 20 May 2002 09:13:39 +0000 (+0000) Subject: Fixed using random values X-Git-Tag: YAZ.1.8.7~7 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=29b509a56dc168a85a584454cc89ad61662536b0;p=yaz-moved-to-github.git Fixed using random values --- diff --git a/client/client.c b/client/client.c index 85063a5..74d5a6f 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2002, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.153 2002-05-19 15:39:54 oleg Exp $ + * $Id: client.c,v 1.154 2002-05-20 09:13:39 oleg Exp $ */ #include @@ -309,7 +309,7 @@ static int process_initResponse(Z_InitResponse *res) if (p) { - char *charset, *lang; + char *charset=NULL, *lang=NULL; int selected; yaz_get_response_charneg(session_mem, p, &charset, &lang, &selected); diff --git a/zoom/zoom-c.c b/zoom/zoom-c.c index 267bb2c..f2f5be7 100644 --- a/zoom/zoom-c.c +++ b/zoom/zoom-c.c @@ -1,5 +1,5 @@ /* - * $Id: zoom-c.c,v 1.30 2002-05-19 15:39:54 oleg Exp $ + * $Id: zoom-c.c,v 1.31 2002-05-20 09:13:39 oleg Exp $ * * ZOOM layer for C, connections, result sets, queries. */ @@ -1631,7 +1631,7 @@ static void handle_apdu (ZOOM_connection c, Z_APDU *apdu) if (p) { - char *charset, *lang; + char *charset=NULL, *lang=NULL; int selected; yaz_get_response_charneg(tmpmem, p, &charset, &lang, &selected);