Path to this page:
Subject: CVS commit: pkgsrc/pkgtools/libnbcompat/files
From: Manuel Bouyer
Date: 2004-03-21 01:31:54
Message id: 20040321003154.33E392DA1D@cvs.netbsd.org
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 :)
Files: