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);
|
||||
switch (status) {
|
||||
case 1:
|
||||
if (pLen > 0)
|
||||
if (*pLen > 0)
|
||||
flog(self, "<::%s", text);
|
||||
return SUCCESS;
|
||||
case TIMEOUT:
|
||||
|
||||
Reference in New Issue
Block a user