covscan fix: get rid of unnecessary condition check

This commit is contained in:
Akira TAGOH 2018-11-12 05:01:50 +00:00
parent 65c7427c01
commit a57647e155
1 changed files with 1 additions and 1 deletions

View File

@ -3259,8 +3259,8 @@ FcConfigParseAndLoadDir (FcConfig *config,
/*
* Add all files of the form [0-9]*.conf
*/
d_len = strlen (e->d_name);
if ('0' <= e->d_name[0] && e->d_name[0] <= '9' &&
(d_len = strlen (e->d_name)) < FC_MAX_FILE_LEN &&
d_len > TAIL_LEN &&
strcmp (e->d_name + d_len - TAIL_LEN, TAIL) == 0)
{