From: Michal 'vorner' Vaner Date: Wed, 12 Jun 2013 10:27:58 +0000 (+0200) Subject: [2726] Reduce scope X-Git-Tag: bind10-1.2.0beta1-release~400^2~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f797b9baa3972fc391a6bfbd2a6a9bae6fcf375;p=thirdparty%2Fkea.git [2726] Reduce scope --- diff --git a/src/lib/dns/python/pydnspp_common.cc b/src/lib/dns/python/pydnspp_common.cc index e9d62e013c..4250db7601 100644 --- a/src/lib/dns/python/pydnspp_common.cc +++ b/src/lib/dns/python/pydnspp_common.cc @@ -56,9 +56,8 @@ PyObject* po_DNSMessageBADVERS; int readDataFromSequence(uint8_t *data, size_t len, PyObject* sequence) { - PyObject* el = NULL; for (size_t i = 0; i < len; i++) { - el = PySequence_GetItem(sequence, i); + PyObject *el = PySequence_GetItem(sequence, i); if (!el) { PyErr_SetString(PyExc_TypeError, "sequence too short");