From: Adam Dickmeiss Date: Mon, 13 Mar 2006 10:48:14 +0000 (+0000) Subject: Survive in set_DatabaseNames if connection has not been connected. X-Git-Tag: YAZ.2.1.14~6 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=1aa1abc04c0e2c40beb8b57f212b5150700b056d;p=yaz-moved-to-github.git Survive in set_DatabaseNames if connection has not been connected. --- diff --git a/src/zoom-c.c b/src/zoom-c.c index 384ef76..13a63e9 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: zoom-c.c,v 1.64 2006-03-01 23:24:25 adam Exp $ + * $Id: zoom-c.c,v 1.65 2006-03-13 10:48:14 adam Exp $ */ /** * \file zoom-c.c @@ -314,7 +314,7 @@ static char **set_DatabaseNames (ZOOM_connection con, ZOOM_options options, char **databaseNames; const char *cp = ZOOM_options_get (options, "databaseName"); - if (!cp || !*cp) + if ((!cp || !*cp) && con->host_port) { if (strncmp (con->host_port, "unix:", 5) == 0) cp = strchr(con->host_port+5, ':'); @@ -1144,7 +1144,7 @@ static zoom_ret ZOOM_connection_send_init (ZOOM_connection c) ZOOM_options_get(c->options, "implementationName"), odr_prepend(c->odr_out, "ZOOM-C", ireq->implementationName)); - version = odr_strdup(c->odr_out, "$Revision: 1.64 $"); + version = odr_strdup(c->odr_out, "$Revision: 1.65 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; ireq->implementationVersion = odr_prepend(c->odr_out,