(hdiff_multi): g_array_new() doesn't return NULL.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2023-09-02 15:43:09 +03:00
parent c3bc39814e
commit f373af88b7
1 changed files with 0 additions and 2 deletions

View File

@ -1150,8 +1150,6 @@ hdiff_multi (const char *s, const char *t, const BRACKET bracket, int min, GArra
int len;
ret = g_array_new (FALSE, TRUE, sizeof (PAIR));
if (ret == NULL)
return FALSE;
len = lcsubstr (s + bracket[DIFF_LEFT].off, bracket[DIFF_LEFT].len,
t + bracket[DIFF_RIGHT].off, bracket[DIFF_RIGHT].len, ret, min);