sql: Avoid segfaulting on missing database link in sql_{escape,query}()
commit323298365ec63802e2562343da444ada6f70c540
authorAndreas Ericsson <ae@op5.se>
Thu, 8 Apr 2010 14:01:16 +0000 (8 16:01 +0200)
committerAndreas Ericsson <ae@op5.se>
Thu, 8 Apr 2010 14:01:16 +0000 (8 16:01 +0200)
tree4605762aab27b1b171f26fdb807eebc83c90f2c5
parent6b4936e647cb069dd64e73462d4b32c0c96dc0e5
sql: Avoid segfaulting on missing database link in sql_{escape,query}()

Previously we used to bomb out hard in those instances. Obviously, that
wasn't so great.

Signed-off-by: Andreas Ericsson <ae@op5.se>
sql.c