Fix previous commit. glob_filename() returns "(char **) -1" for certain

errors, not necessarily a pointer such that (intptr_t)pointer is -1.

Also fix the style bug that the cast was not followed by a space.
This style of this file is now perfectly non-KNF for this cast too.
This commit is contained in:
Bruce Evans 2003-10-26 06:40:37 +00:00
parent 7d38a5efdc
commit 4fd41a120c

View File

@ -539,7 +539,7 @@ is_section (name, path)
x = 0;
vs = glob_filename (temp);
if ((intptr_t)vs == -1)
if (vs == (char **) -1)
{
free (temp);
return NULL;