From: Adam Dickmeiss Date: Sat, 22 Sep 2012 16:53:51 +0000 (+0200) Subject: Solaris crashes on %s with NULL ptr X-Git-Tag: v1.6.21~4 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=2b9d3f2aa1da599dcce07368c6cb3a33b0ca9d83;p=pazpar2-moved-to-github.git Solaris crashes on %s with NULL ptr --- 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 {