Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5200aff

Browse files
committed
Ensure that metadata pointer is initially set to NULL
1 parent bc6e367 commit 5200aff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_png.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static PyObject *Py_write_png(PyObject *self, PyObject *args, PyObject *kwds)
124124
{
125125
numpy::array_view<unsigned char, 3> buffer;
126126
PyObject *filein;
127-
PyObject *metadata;
127+
PyObject *metadata = NULL;
128128
PyObject *meta_key, *meta_val;
129129
png_text *text;
130130
Py_ssize_t pos = 0;

0 commit comments

Comments
 (0)