From 9afb267cd98814efbae6eed15824ea8090758bb5 Mon Sep 17 00:00:00 2001 From: helge <helgewurst@web.de> Date: 周六, 06 11月 2021 07:05:16 +0800 Subject: [PATCH] bug fix: change netconn_write() argument from NETCONN_NOCOPY to NETCONN_COPY --- libscpi/src/parser.c | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/libscpi/src/parser.c b/libscpi/src/parser.c index 67b9bd5..058cde7 100644 --- a/libscpi/src/parser.c +++ b/libscpi/src/parser.c @@ -1399,13 +1399,6 @@ for (result = 1; result != 0; result = scpiLex_Comma(state, &tmp)) { token->len += result; - if (result == 0) { - token->type = SCPI_TOKEN_UNKNOWN; - token->len = 0; - paramCount = -1; - break; - } - result = scpiParser_parseProgramData(state, &tmp); if (tmp.type != SCPI_TOKEN_UNKNOWN) { token->len += result; @@ -1416,10 +1409,6 @@ break; } paramCount++; - } - - if (token->len == -1) { - token->len = 0; } if (numberOfParameters != NULL) { -- Gitblit v1.9.1