From: Adam Dickmeiss Date: Tue, 29 May 2012 14:19:53 +0000 (+0200) Subject: Fix segv on Solaris which don't like NULLs for %s X-Git-Tag: v1.6.15~19 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=1db48a73126beef112e9a3de775832173fa317f3;p=pazpar2-moved-to-github.git Fix segv on Solaris which don't like NULLs for %s --- diff --git a/src/database.c b/src/database.c index d59ce34..2940c25 100644 --- a/src/database.c +++ b/src/database.c @@ -100,7 +100,8 @@ struct database *create_database_for_service(const char *id, if (!strcmp(p->id, id)) return p; - yaz_log(YLOG_DEBUG, "new database %s under service %s", id, service->id); + yaz_log(YLOG_DEBUG, "new database %s under service %s", id, + service->id ? service->id : "null"); p = new_database_inherit_settings(id, service->nmem, service->settings); p->next = service->databases; service->databases = p;