From 6e49b1e6c1115c31fe21776e9081ab51d4cc591a Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Mon, 14 Apr 2008 09:20:48 +1000 Subject: [PATCH] dereference pointer r2421 | dcl | 2008-04-14 09:20:48 +1000 (Mon, 14 Apr 2008) | 2 lines --- site_ansto/counterdriv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site_ansto/counterdriv.c b/site_ansto/counterdriv.c index d8137f5e..11c29a70 100644 --- a/site_ansto/counterdriv.c +++ b/site_ansto/counterdriv.c @@ -278,7 +278,7 @@ static int MonRead(pBeamMon self, /*@out@*/ char* text, int *pLen) { status = readRS232TillTerm(self->controller, text, pLen); switch (status) { case 1: - if (pLen > 0) + if (*pLen > 0) flog(self, "<::%s", text); return SUCCESS; case TIMEOUT: