Mercurial > vim
diff src/if_py_both.h @ 3636:0e9b2622c94a v7.3.578
updated for version 7.3.578
Problem: Misplaced declaration.
Solution: Move declaration to start of block.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 29 Jun 2012 16:19:50 +0200 |
parents | c052f3b79b99 |
children | 80ed6aa7b9eb |
line wrap: on
line diff
--- 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) {