From 4ce3fe751c667110524147ddcdea81bd364c47f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Wed, 2 Jul 1997 02:27:27 +0200
Subject: [PATCH] Bugfix.

Rev: lib/modules/Sql.pmod/sql.pike:1.14
---
 lib/modules/Sql.pmod/sql.pike | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/modules/Sql.pmod/sql.pike b/lib/modules/Sql.pmod/sql.pike
index da29be0bb4..483f8a8a51 100644
--- a/lib/modules/Sql.pmod/sql.pike
+++ b/lib/modules/Sql.pmod/sql.pike
@@ -1,5 +1,5 @@
 /*
- * $Id: sql.pike,v 1.13 1997/06/27 18:40:37 grubba Exp $
+ * $Id: sql.pike,v 1.14 1997/07/02 00:27:27 grubba Exp $
  *
  * Implements the generic parts of the SQL-interface
  *
@@ -8,7 +8,7 @@
 
 //.
 //. File:	sql.pike
-//. RCSID:	$Id: sql.pike,v 1.13 1997/06/27 18:40:37 grubba Exp $
+//. RCSID:	$Id: sql.pike,v 1.14 1997/07/02 00:27:27 grubba Exp $
 //. Author:	Henrik Grubbstr�m (grubba@infovav.se)
 //.
 //. Synopsis:	Implements the generic parts of the SQL-interface.
@@ -79,7 +79,7 @@ void create(void|string|object host, void|string db,
 
   array(string) program_names;
 
-  if (host != replace(host, ({ ":", "/", "@" }), ({ "", "", "" }))) {
+  if (host && (host != replace(host, ({ ":", "/", "@" }), ({ "", "", "" })))) {
 
     // The hostname is on the format:
     //
-- 
GitLab