mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue