aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-02-17 07:35:40 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-02-17 07:35:40 +0000
commit876c642f6866559f47e0f03d1702393a40473773 (patch)
tree68708afba9dc295ef4aaf8dd03323b503681bdc1 /src
parent71b7bf72c129f07f1cef978259c73aca9c6824b8 (diff)
downloadellinika-876c642f6866559f47e0f03d1702393a40473773.tar.gz
ellinika-876c642f6866559f47e0f03d1702393a40473773.tar.bz2
(sql_connect): Allow for sql_host==NULL
git-svn-id: file:///home/puszcza/svnroot/ellinika/trunk@15 941c8c0f-9102-463b-b60b-cd22ce0e6858
Diffstat (limited to 'src')
-rw-r--r--src/sql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sql.c b/src/sql.c
index e758b0c..2579c93 100644
--- a/src/sql.c
+++ b/src/sql.c
@@ -12,7 +12,7 @@ sql_connect()
{
char *socket_path = NULL;
- if (sql_host[0] == '/') {
+ if (sql_host && sql_host[0] == '/') {
socket_path = sql_host;
sql_host = "localhost";
}

Return to:

Send suggestions and report system problems to the System administrator.