Index: generic/nsfProfile.c =================================================================== diff -u -r22f4e55c94ff56910d48c5b3a49ea6fd6bf80d2c -ra529b8f0a29c485bb855aa73d4b94d3a95a1e13a --- generic/nsfProfile.c (.../nsfProfile.c) (revision 22f4e55c94ff56910d48c5b3a49ea6fd6bf80d2c) +++ generic/nsfProfile.c (.../nsfProfile.c) (revision a529b8f0a29c485bb855aa73d4b94d3a95a1e13a) @@ -315,7 +315,7 @@ const char *fullMethodName, *label; Tcl_DString ds; - assert(cd); + assert(cd != NULL); fullMethodName = ObjStr(objv[0]); ti = (NsfShadowTclCommandInfo *)cd; @@ -457,7 +457,9 @@ Tcl_Obj *nameObj = NULL; if (GetPair(interp, ov[i], 1, &nameObj, &nrArgs) == TCL_OK) { + assert(nameObj != NULL); ti[i].nrArgs = nrArgs; + if (NsfReplaceCommand(interp, nameObj, Nsf_ProfileFilterObjCmd, &ti[i], &ti[i]) != TCL_OK) { NsfLog(interp, NSF_LOG_WARN, "nsfprofile: list element '%s' is not a command", ObjStr(nameObj)); }