Subject: CVS commit: src/games/adventure
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 03/21/2006 17:14:15
Module Name: src
Committed By: christos
Date: Tue Mar 21 17:14:15 UTC 2006
Modified Files:
src/games/adventure: io.c
Log Message:
Coverity CID 2737: Handle linked-lists properly. Use calloc instead of malloc
so that we don't end up storing garbage accidentally and the next pointer is
initialized. If there is an inconsistency in the file abort instead
of dereferencing NULL.
To generate a diff of this commit:
cvs rdiff -r1.18 -r1.19 src/games/adventure/io.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.