1149 static snackWidget * checkboxTreeWidget(PyObject * s, PyObject * args, PyObject * kwargs) {
1150 int height;
1151 int scrollBar = 0;
1152 int hide_checkbox = 0;
1153 int unselectable = 0;
1154 int flags;
1155 snackWidget * widget;
1156 const char *kw[] = {"height", "scrollbar", "hide_checkbox", "unselectable", NULL};
1157
1158 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "i|iii", (char **) kw,
1159 &height, &scrollBar, &hide_checkbox, &unselectable))
when PyArg_ParseTupleAndKeywords() succeeds
taking False path
1160 return NULL;
1161
1162 flags = (scrollBar ? NEWT_FLAG_SCROLL : 0) |
1163 (hide_checkbox ? NEWT_CHECKBOXTREE_HIDE_BOX : 0) |
when considering value == (int)0 from snackmodule.c:1159
taking False path
1164 (unselectable ? NEWT_CHECKBOXTREE_UNSELECTABLE : 0);
when considering range: -0x80000000 <= value <= -1
taking True path
1165
when considering range: -0x80000000 <= value <= -1
taking True path
1166 widget = snackWidgetNew ();
1167 widget->co = newtCheckboxTree(-1, -1, height, flags);
when snackWidgetNew() fails
1168
dereferencing NULL (widget->co) at snackmodule.c:1170
found 10 similar trace(s) to this
1169 widget->anint = 1;
1170
1171 return widget;
1172 }
1173