]> git.cameronkatri.com Git - bsdgames-darwin.git/commit
Coverity CID 2737: Handle linked-lists properly. Use calloc instead of malloc
authorchristos <christos@NetBSD.org>
Tue, 21 Mar 2006 17:14:15 +0000 (17:14 +0000)
committerchristos <christos@NetBSD.org>
Tue, 21 Mar 2006 17:14:15 +0000 (17:14 +0000)
commitc75621391dae5a9b1412c1964ee8f6debf2c1035
treef84fdd8678f16bb527e6018b8401e3d3fe6849a3
parentea7a50190d992fca1a93ad925f543277e2e66cab
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.
adventure/io.c