From 1aa1abc04c0e2c40beb8b57f212b5150700b056d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 13 Mar 2006 10:48:14 +0000 Subject: [PATCH] Survive in set_DatabaseNames if connection has not been connected. --- src/zoom-c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, -- 1.7.10.4