mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-09 13:02:01 +03:00
(edit_suggest_current_word): the NULL check is unnecessary...
...because the pointer can't be NULL. Found by Coverity. Coverity id #313667. Signed-off-by: Andreas Mohr <and@gmx.li> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
ae244077af
commit
68b803e5c4
@ -3630,7 +3630,7 @@ edit_suggest_current_word (WEdit * edit)
|
||||
edit_insert (edit, *new_word);
|
||||
g_free (cp_word);
|
||||
}
|
||||
else if (retval == B_ADD_WORD && match_word != NULL)
|
||||
else if (retval == B_ADD_WORD)
|
||||
aspell_add_to_dict (match_word->str, (int) word_len);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user