# HG changeset patch # User Bram Moolenaar # Date 1340979590 -7200 # Node ID 0e9b2622c94a8edf906d6c44831c1cded7184d13 # Parent e57accfea24e126d73537cef5767ce5e813e5a04 updated for version 7.3.578 Problem: Misplaced declaration. Solution: Move declaration to start of block. diff --git a/src/if_py_both.h b/src/if_py_both.h --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -818,21 +818,21 @@ DictionaryAssItem(PyObject *self, PyObje if (valObject == NULL) { + hashitem_T *hi; + if (di == NULL) { PyErr_SetString(PyExc_IndexError, _("no such key in dictionary")); return -1; } - hashitem_T *hi = hash_find(&d->dv_hashtab, di->di_key); + hi = hash_find(&d->dv_hashtab, di->di_key); hash_remove(&d->dv_hashtab, hi); dictitem_free(di); return 0; } if (ConvertFromPyObject(valObject, &tv) == -1) - { return -1; - } if (di == NULL) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 578, +/**/ 577, /**/ 576,