rem: if (objv[2] != NULL) {
add: if (objc > 2) {
context: NsTclStrftimeObjCmd(ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj **objv){    char   *fmt, buf[200];    time_t  time;    if (objc != 2 && objc != 3) {        Tcl_WrongNumArgs(interp, 1, objv, "time ?fmt?");        return TCL_ERROR;    }    if (Tcl_GetLongFromObj(interp, objv[1], &time) != TCL_OK) {        return TCL_ERROR;    }    if (objv[2] != NULL) {        fmt = Tcl_GetString(objv[2]);    } else {        fmt = "%c";    }    if (strftime(buf, sizeof(buf), fmt, ns_localtime(&time)) == 0) {        Tcl_AppendStringsToObj(Tcl_GetObjResult(interp), "invalid time: ",             Tcl_GetString(objv[1]), NULL);        return TCL_ERROR;    }    Tcl_SetResult(interp, buf, TCL_VOLATILE);    return TCL_OK;}