From: Adam Dickmeiss Date: Thu, 11 Mar 2010 11:41:09 +0000 (+0100) Subject: Add assert for non-NULL session X-Git-Tag: v1.4.0~108 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=a4ec57c24617d97ade83ff3ac06458a476e12b82;p=pazpar2-moved-to-github.git Add assert for non-NULL session --- diff --git a/src/session.c b/src/session.c index 99a02aa..e2c66d3 100644 --- a/src/session.c +++ b/src/session.c @@ -414,6 +414,7 @@ int session_set_watch(struct session *s, int what, void session_alert_watch(struct session *s, int what) { + assert(s); session_enter(s); if (s->watchlist[what].fun) {