* Sebastian Hammer, Adam Dickmeiss
*
* $Log: ir-tcl.c,v $
- * Revision 1.52 1995-08-04 11:32:38 adam
+ * Revision 1.53 1995-08-04 12:49:26 adam
+ * Bug fix: reading uninitialized variable p.
+ *
+ * Revision 1.52 1995/08/04 11:32:38 adam
* More work on output queue. Memory related routines moved
* to mem.c
*
return TCL_OK;
if (!p->cs_link)
{
- interp->result = "not connected";
+ interp->result = "init: not connected";
return TCL_ERROR;
}
apdu = zget_APDU (p->odr_out, Z_APDU_initRequest);
return TCL_OK;
if (!p->cs_link)
{
- interp->result = "not connected";
+ interp->result = "triggerResourceControl: not connected";
return TCL_ERROR;
}
apdu = zget_APDU (p->odr_out, Z_APDU_triggerResourceControlRequest);
}
if (!p->cs_link)
{
- interp->result = "not connected";
+ interp->result = "search: not connected";
return TCL_ERROR;
}
apdu = zget_APDU (p->odr_out, Z_APDU_searchRequest);
* do_present: Perform Present Request
*/
-static int do_present (void *o, Tcl_Interp *interp,
- int argc, char **argv)
+static int do_present (void *o, Tcl_Interp *interp, int argc, char **argv)
{
IrTcl_SetObj *obj = o;
IrTcl_Obj *p;
}
else
number = 10;
+ p = obj->parent;
if (!p->cs_link)
{
- interp->result = "not connected";
+ interp->result = "present: not connected";
return TCL_ERROR;
}
- p = obj->parent;
obj->start = start;
obj->number = number;
}
if (!p->cs_link)
{
- interp->result = "not connected";
+ interp->result = "scan: not connected";
return TCL_ERROR;
}