From: Adam Dickmeiss Date: Wed, 13 Mar 2013 12:58:37 +0000 (+0100) Subject: Allow session_log with session=NULL ptr X-Git-Tag: v1.6.28~10 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=464aa664eb9300b85c752206065dc3542a8f4bd7;p=pazpar2-moved-to-github.git Allow session_log with session=NULL ptr --- diff --git a/src/session.c b/src/session.c index 50c4b94..65caa7c 100644 --- a/src/session.c +++ b/src/session.c @@ -2155,7 +2155,7 @@ void session_log(struct session *s, int level, const char *fmt, ...) va_start(ap, fmt); yaz_vsnprintf(buf, sizeof(buf)-30, fmt, ap); - yaz_log(level, "Session %u: %s", s->session_id, buf); + yaz_log(level, "Session %u: %s", s ? s->session_id : "-", buf); va_end(ap); }