Subject: CVS commit: src/usr.bin/vi/common
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 09/27/2006 21:01:18
Module Name:	src
Committed By:	christos
Date:		Wed Sep 27 21:01:18 UTC 2006

Modified Files:
	src/usr.bin/vi/common: msg.c

Log Message:
Coverity CID 793 uncovered a bunch of issues:
1. needfree = 0, should have been *needfree = 0
2. this function will not work with sp == NULL, since KEY_NAME dereferences it.
3. the if (0) {
  label:
  }
  code is disgusting.

Remove all the nasty and impossible code and fix 1.


To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 src/usr.bin/vi/common/msg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.