Subject: CVS commit: pkgsrc/pkgtools/libnbcompat/files
To: None <pkgsrc-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: pkgsrc-changes
Date: 03/21/2004 00:31:54
Module Name: pkgsrc
Committed By: bouyer
Date: Sun Mar 21 00:31:54 UTC 2004
Modified Files:
pkgsrc/pkgtools/libnbcompat/files: vis.c
Log Message:
Some compilers (e.g. Sunpro) emit one char[] per string, even when
multiple identical strings appear in a source file.
As a result, comparing char *o to the "" pointer gives the wrong result
in vis.c, as the "" pointer we're checking against isn't the same as the
"" which initialised char *o.
Use a global pointer initialised to "", and use it for MAKEEXTRALIST()
calls.
Thanks to Christos Zoulas for suggesting the right solution :)
To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 pkgsrc/pkgtools/libnbcompat/files/vis.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.