Problem: Coverity warns for not using return value of dict_add().
Solution: When dict_add() fails then don't call hash_remove().
{
if (*action == 'm')
{
- // cheap way to move a dict item from "d2" to "d1"
+ // Cheap way to move a dict item from "d2" to "d1".
+ // If dict_add() fails then "d2" won't be empty.
di1 = HI2DI(hi2);
- dict_add(d1, di1);
- hash_remove(&d2->dv_hashtab, hi2);
+ if (dict_add(d1, di1) == OK)
+ hash_remove(&d2->dv_hashtab, hi2);
}
else
{
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 926,
/**/
925,
/**/