phhusson / platform_frameworks_base

Other
10 stars 32 forks source link

Fix typo on fnmatch return value check #1

Closed notsyncing closed 6 years ago

notsyncing commented 6 years ago

fnmatch returns 0 on match, according to http://man7.org/linux/man-pages/man3/fnmatch.3.html:

RETURN VALUE         top

       Zero if string matches pattern, FNM_NOMATCH if there is no match or
       another nonzero value if there is an error.