Fix segv on Solaris which don't like NULLs for %s
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 May 2012 14:19:53 +0000 (16:19 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 May 2012 14:19:53 +0000 (16:19 +0200)
src/database.c

index d59ce34..2940c25 100644 (file)
@@ -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;