Mercurial > vim
comparison src/if_py_both.h @ 8913:caffda31048c v7.4.1743
commit https://github.com/vim/vim/commit/75be2339d877bbd38df91c0181e1e0e388852df6
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 14 23:10:40 2016 +0200
patch 7.4.1743
Problem: Clang warns for uninitialzed variable. (Michael Jarvis)
Solution: Initialize it.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 14 Apr 2016 23:15:05 +0200 |
parents | fe12294683d8 |
children | 8cbf472483fa |
comparison
equal
deleted
inserted
replaced
8912:a158f9e0233c | 8913:caffda31048c |
---|---|
6068 | 6068 |
6069 static int | 6069 static int |
6070 ConvertFromPySequence(PyObject *obj, typval_T *tv) | 6070 ConvertFromPySequence(PyObject *obj, typval_T *tv) |
6071 { | 6071 { |
6072 PyObject *lookup_dict; | 6072 PyObject *lookup_dict; |
6073 int ret; | 6073 int ret = 0; |
6074 | 6074 |
6075 if (!(lookup_dict = PyDict_New())) | 6075 if (!(lookup_dict = PyDict_New())) |
6076 return -1; | 6076 return -1; |
6077 | 6077 |
6078 if (PyType_IsSubtype(obj->ob_type, &ListType)) | 6078 if (PyType_IsSubtype(obj->ob_type, &ListType)) |