Solaris crashes on %s with NULL ptr
authorAdam Dickmeiss <adam@indexdata.dk>
Sat, 22 Sep 2012 16:53:51 +0000 (18:53 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Sat, 22 Sep 2012 16:53:51 +0000 (18:53 +0200)
src/pazpar2_config.c

index 57809b1..00e36a6 100644 (file)
@@ -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
             {