Silenced a few compiler warnings
[blender-staging.git] / source / blender / python / api2_2x / Draw.c
index 0cdcd20f9a3c331633aa6a7c0c3b95d2d01e5be7..0ea772629d458589bc82db4f8c161db506530feb 100644 (file)
@@ -738,7 +738,7 @@ void BPY_spacescript_do_pywin_event( SpaceScript * sc, unsigned short event,
 static void exec_but_callback(void *pyobj, void *data)
 {
        PyObject *result;
-       PyObject * pyvalue;
+       PyObject *pyvalue = NULL;
        uiBut *but = (uiBut *)data;
        PyObject *arg;
        PyObject *callback = (PyObject *)pyobj;