Index: generic/nsf.c =================================================================== diff -u -r1279a7ecae38bb092922db436da36d0caa77cf6f -re3d180a20280ced720d3310e445be9a9255dacb8 --- generic/nsf.c (.../nsf.c) (revision 1279a7ecae38bb092922db436da36d0caa77cf6f) +++ generic/nsf.c (.../nsf.c) (revision e3d180a20280ced720d3310e445be9a9255dacb8) @@ -23988,6 +23988,8 @@ if (unlikely((pcPtr->flags[i] & NSF_PC_INVERT_DEFAULT) != 0u)) { int boolVal; + assert(pPtr->defaultValue != NULL); + Tcl_GetBooleanFromObj(interp, pPtr->defaultValue, &boolVal); pcPtr->objv[i] = Tcl_NewBooleanObj(boolVal == 0); /* @@ -24652,6 +24654,7 @@ if (unlikely(pPtr->converter == Nsf_ConvertToSwitch)) { /*fprintf(stderr,"... set INVERT_DEFAULT for '%s' flags %.6x\n", pPtr->name, pPtr->flags);*/ + assert(pPtr->defaultValue != NULL); pcPtr->flags[j] |= NSF_PC_INVERT_DEFAULT; } }