Commit a961150d authored by David Byers's avatar David Byers

Bug fix: Initialize all person scratchpad pointers to NULL.

parent 3ae357ed
1999-06-23 David Byers <davby@ida.liu.se>
* src/server/dbck.c (init_person_scratch): Initialize person
scratchpad entries to NULL.
1999-06-21 Per Cederqvist <ceder@lysator.liu.se>
Fix the test suite.
......
/*
* $Id: dbck.c,v 0.54 1999/06/05 20:48:44 ceder Exp $
* $Id: dbck.c,v 0.55 1999/06/23 13:31:40 byers Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -35,7 +35,7 @@
static const char *
rcsid = "$Id: dbck.c,v 0.54 1999/06/05 20:48:44 ceder Exp $";
rcsid = "$Id: dbck.c,v 0.55 1999/06/23 13:31:40 byers Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -1337,10 +1337,13 @@ static void
init_person_scratch(void)
{
Pers_no pno = 0;
Pers_no i = 0;
if (person_scratchpad == NULL)
{
person_scratchpad = smalloc(sizeof(*person_scratchpad) * param.max_conf);
for (i = 0; i < param.max_conf; i++)
person_scratchpad[i] = NULL;
}
while( (pno = traverse_person(pno)) != 0 )
......
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