File: snackmodule.c
Function: widgetCheckboxTreeGetEntryValue
Error: returning (PyObject*)NULL without setting an exception
1255 static PyObject * widgetCheckboxTreeGetEntryValue(snackWidget * s, PyObject * args) {
1256     int data;
1257     int isOn = 0;
1258     int isBranch = 0;
1259     char selection;
1260 
1261     if (!PyArg_ParseTuple(args, "i", &data)) return NULL;
1262 
when PyArg_ParseTuple() succeeds
taking False path
1263     selection = newtCheckboxTreeGetEntryValue(s->co, I2P(data));
1264 
1265     if (selection == -1) return NULL;
1266 
when considering value == (char)-1 from snackmodule.c:1264
taking True path
1267     switch (selection) {
1268     case NEWT_CHECKBOXTREE_EXPANDED:
1269 	isOn = 1;
1270     case NEWT_CHECKBOXTREE_COLLAPSED:
1271 	isBranch = 1;
1272 	break;
1273     case NEWT_CHECKBOXTREE_UNSELECTED:
1274 	break;
1275     default:
1276 	isOn = 1;
1277 	break;
1278     }    
1279     return Py_BuildValue("(ii)", isBranch, isOn);
1280 }
1281 
returning (PyObject*)NULL without setting an exception