From ba4ad93eada475e607831ce17883d04d1575bc32 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 9 Apr 2009 01:52:29 +0000 Subject: [PATCH] Python 2.3 wouldn't compile with BGL. --- source/blender/python/api2_2x/BGL.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/api2_2x/BGL.c b/source/blender/python/api2_2x/BGL.c index e5868a82c2c..cfbb4611c6c 100644 --- a/source/blender/python/api2_2x/BGL.c +++ b/source/blender/python/api2_2x/BGL.c @@ -1091,7 +1091,7 @@ PyObject *BGL_Init(const char *from) PyObject *dict= PyModule_GetDict(mod); PyObject *item; if( PyType_Ready( &buffer_Type) < 0) - Py_RETURN_NONE; + return NULL; /* should never happen */ #define EXPP_ADDCONST(x) PyDict_SetItemString(dict, #x, item=PyInt_FromLong((int)x)); Py_DECREF(item)