Commit 10e96208 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(adjust_read): Don't follow NULL pointers.

parent c74345e2
/*
* $Id: membership.c,v 0.22 1994/10/23 16:15:07 ceder Exp $
* $Id: membership.c,v 0.23 1994/11/14 23:41:02 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -31,7 +31,7 @@
#define DEBUG_MARK_AS_READ
static char *rcsid = "$Id: membership.c,v 0.22 1994/10/23 16:15:07 ceder Exp $";
static char *rcsid = "$Id: membership.c,v 0.23 1994/11/14 23:41:02 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -341,7 +341,8 @@ adjust_read( Membership * m,
m->last_text_read++;
handled++;
}
else if (conf->texts.texts[m->last_text_read + 1 - conf_min] == 0)
else if (m->last_text_read < conf_max
&& conf->texts.texts[m->last_text_read + 1 - conf_min] == 0)
{
/* This text is deleted. */
m->last_text_read++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment