aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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.