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:
parent
7d38a5efdc
commit
4fd41a120c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user