diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sql.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"; } |