# HG changeset patch # User Christian Brabandt # Date 1493640903 -7200 # Node ID ad4b5693914026991fb91529a6affcea309fc6c8 # Parent 709b5eb4cf26a9049deb1b77dbdf1f6fed25949c patch 8.0.0595: Coverity warning for not checking return value commit https://github.com/vim/vim/commit/beb9cb19c660484488a71a25eda46ab0fa579278 Author: Bram Moolenaar Date: Mon May 1 14:14:04 2017 +0200 patch 8.0.0595: Coverity warning for not checking return value Problem: Coverity warning for not checking return value of dict_add(). Solution: Check the return value for FAIL. diff --git a/src/quickfix.c b/src/quickfix.c --- a/src/quickfix.c +++ b/src/quickfix.c @@ -4722,7 +4722,8 @@ get_errorlist_properties(win_T *wp, dict if (di != NULL) { copy_tv(qi->qf_lists[qf_idx].qf_ctx, &di->di_tv); - dict_add(retdict, di); + if (dict_add(retdict, di) == FAIL) + dictitem_free(di); } } else diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 595, +/**/ 594, /**/ 593,