Commit 552f4c11 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(init_person): Clear the pwd field. This way, we avoid writing junk

	to the database file, and we make valgrind happy.  The junk
	was never used, so this is not a bugfix.
parent cb43b920
/*
* $Id: memory.c,v 0.40 2002/03/29 22:29:45 ceder Exp $
* $Id: memory.c,v 0.41 2002/08/02 10:11:40 ceder Exp $
* Copyright (C) 1991-1994, 1996-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -457,7 +457,9 @@ init_person (Person *p)
init_mark_list(&p->marks);
init_membership_list(&p->conferences);
/* No initialization of pwd is done (or needed) */
/* No initialization of pwd is really needed,
but this shuts up valgrind. */
memset(p->pwd, 0, PASSWD_LEN);
}
/* Personal_flags */
......
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