0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.3.578

Problem:    Misplaced declaration.
Solution:   Move declaration to start of block.
This commit is contained in:
Bram Moolenaar
2012-06-29 16:19:50 +02:00
parent 11b73d668f
commit f27839c1a9
2 changed files with 5 additions and 3 deletions

View File

@@ -818,21 +818,21 @@ DictionaryAssItem(PyObject *self, PyObject *keyObject, PyObject *valObject)
if (valObject == NULL) if (valObject == NULL)
{ {
hashitem_T *hi;
if (di == NULL) if (di == NULL)
{ {
PyErr_SetString(PyExc_IndexError, _("no such key in dictionary")); PyErr_SetString(PyExc_IndexError, _("no such key in dictionary"));
return -1; 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); hash_remove(&d->dv_hashtab, hi);
dictitem_free(di); dictitem_free(di);
return 0; return 0;
} }
if (ConvertFromPyObject(valObject, &tv) == -1) if (ConvertFromPyObject(valObject, &tv) == -1)
{
return -1; return -1;
}
if (di == NULL) if (di == NULL)
{ {

View File

@@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
578,
/**/ /**/
577, 577,
/**/ /**/