Commits

Ronald Oussoren committed c42c98d

Fix crash in loadBundleFunctions when bundle is None

Comments (0)

Files changed (1)

pyobjc-core/Modules/objc/bundle-variables.m

 				return NULL;
 			}
 		} else {
-			PyObject* py_name = PyObjC_IdToPython(name);
+			PyObject* py_name;
+			if (cfBundle == NULL) {
+				py_name = PyText_FromString(c_name);
+			} else {
+				py_name = PyObjC_IdToPython(name);
+			}
 			PyObject* pyVal = PyObjCFunc_New(
 					py_name,
 					value,