From 2b9d3f2aa1da599dcce07368c6cb3a33b0ca9d83 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sat, 22 Sep 2012 18:53:51 +0200 Subject: [PATCH] Solaris crashes on %s with NULL ptr --- src/pazpar2_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index 57809b1..00e36a6 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -656,7 +656,7 @@ static struct conf_service *service_create_static(struct conf_server *server, if (default_sort && strcmp(default_sort, "")) { service->default_sort = nmem_strdup(service->nmem, default_sort); yaz_log(YLOG_LOG, "service %s: default sort order configured to: %s", - service_id, default_sort); + service_id ? service_id : "unnamed", default_sort); } else { -- 1.7.10.4