Commit a57647e1 authored by Akira TAGOH's avatar Akira TAGOH
Browse files

covscan fix: get rid of unnecessary condition check

parent 65c7427c
...@@ -3259,8 +3259,8 @@ FcConfigParseAndLoadDir (FcConfig *config, ...@@ -3259,8 +3259,8 @@ FcConfigParseAndLoadDir (FcConfig *config,
/* /*
* Add all files of the form [0-9]*.conf * 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' && 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 && d_len > TAIL_LEN &&
strcmp (e->d_name + d_len - TAIL_LEN, TAIL) == 0) strcmp (e->d_name + d_len - TAIL_LEN, TAIL) == 0)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment