From 1db48a73126beef112e9a3de775832173fa317f3 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 29 May 2012 16:19:53 +0200 Subject: [PATCH] Fix segv on Solaris which don't like NULLs for %s --- src/database.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.4