Add assert for non-NULL session
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 11 Mar 2010 11:41:09 +0000 (12:41 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 11 Mar 2010 11:41:09 +0000 (12:41 +0100)
src/session.c

index 99a02aa..e2c66d3 100644 (file)
@@ -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)
     {