Skip to content

Commit f3bcec9

Browse files
committed
initialize size at the beginning of the function
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
1 parent ea86e02 commit f3bcec9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,14 @@ static char PyXmlSec_PyBase64DefaultLineSize__doc__[] = \
138138
static PyObject* PyXmlSec_PyBase64DefaultLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
139139
static char *kwlist[] = { "size", NULL };
140140
PyObject *pySize = NULL;
141+
int size;
141142
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O:base64_default_line_size", kwlist, &pySize)) {
142143
return NULL;
143144
}
144145
if (pySize == NULL) {
145146
return PyLong_FromLong(xmlSecBase64GetDefaultLineSize());
146147
}
147-
int size = (int)PyLong_AsLong(pySize);
148+
size = (int)PyLong_AsLong(pySize);
148149
if (PyErr_Occurred()) {
149150
return NULL;
150151
}

0 commit comments

Comments
 (0)