File: | snackmodule.c |
Function: | checkboxWidget |
Error: | dereferencing NULL (widget->achar) at snackmodule.c:767 |
758 static snackWidget * checkboxWidget(PyObject * s, PyObject * args) {
759 snackWidget * widget;
760 char * text;
761 int isOn;
762
763 if (!PyArg_ParseTuple(args, "si", &text, &isOn)) return NULL;
764
when PyArg_ParseTuple() succeeds
taking False path
765 widget = snackWidgetNew ();
766 widget->co = newtCheckbox(-1, -1, text, isOn ? '*' : ' ', NULL,
when snackWidgetNew() fails
767 &widget->achar);
dereferencing NULL (widget->achar) at snackmodule.c:767
768
769 return widget;
770 }
771