Menu

#1307 initialize variable

Undefined
wont-fix
nobody
None
Undefined
2022-09-09
2022-09-09
No

/src/plugins/contrib/SpellChecker/hunspell/src/hunspell/suggestmgr.cxx line 2088/ 2138
code:
int num = 0;
int diff = 0;
int diffpos[2]; // better = {0}

Discussion

  • Miguel Gimenez

    Miguel Gimenez - 2022-09-09
    • status: open --> wont-fix
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-09-09

    If you analyze the code, diffpos[] contents are read only after they have been written.

    Also, this is an external library that has been updated last month, so it should not be modified unless some serious issue is detected.

     

Log in to post a comment.

MongoDB Logo MongoDB