dereference pointer
r2421 | dcl | 2008-04-14 09:20:48 +1000 (Mon, 14 Apr 2008) | 2 lines
This commit is contained in:
@@ -278,7 +278,7 @@ static int MonRead(pBeamMon self, /*@out@*/ char* text, int *pLen) {
|
|||||||
status = readRS232TillTerm(self->controller, text, pLen);
|
status = readRS232TillTerm(self->controller, text, pLen);
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 1:
|
case 1:
|
||||||
if (pLen > 0)
|
if (*pLen > 0)
|
||||||
flog(self, "<::%s", text);
|
flog(self, "<::%s", text);
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
case TIMEOUT:
|
case TIMEOUT:
|
||||||
|
|||||||
Reference in New Issue
Block a user