diff --git a/devser.c b/devser.c index fc1f90b2..bb6a7a92 100644 --- a/devser.c +++ b/devser.c @@ -151,9 +151,6 @@ static DevAction *DevNextAction(DevSer * devser) } static void LogStart(DevSer *self) { - if(self->startTime > 0){ - printf("DEVSER: there is something fucked up in LogStart. Investigate!\n"); - } self->startTime = DoubleTime(); } static void LogResponse(DevSer *self, int error) diff --git a/motorsec.c b/motorsec.c index 6f0ed33a..0288e4bc 100644 --- a/motorsec.c +++ b/motorsec.c @@ -298,7 +298,7 @@ static int SecMotorStatus(void *sulf, SConnection * pCon) int status; pHdb node = NULL; hdbValue v; - float interrupt; + float interrupt = 0.; char error[132]; assert(sulf); diff --git a/scriptcontext.c b/scriptcontext.c index e1152fc3..b63e565b 100644 --- a/scriptcontext.c +++ b/scriptcontext.c @@ -553,7 +553,7 @@ static char *SctActionHandler(void *actionData, char *lastReply, } else { l = strlen(origScript); } - snprintf(eprop, sizeof eprop, "error_in_%.*s", l, origScript); + snprintf(eprop, sizeof eprop, "error_in_%s", origScript); emsg = GetHdbProp(node, eprop); cnt = 0; if (emsg != NULL) {