@@ -93,11 +93,9 @@ static std::string incLogMsg;
9393
9494static void readFromClient (void *pParam)
9595{
96- char recvbuf[BUFFER_SIZE];
96+ char recvbuf[BUFFER_SIZE] = { 0 } ;
9797 int recvLength;
98- std::string
9998
100- memset (recvbuf, 0 , BUFFER_SIZE);
10199 recvLength = recv (insock, recvbuf, BUFFER_SIZE, 0 );
102100 if (recvLength > 0 ) {
103101 incLogMsg.append (recvbuf, recvLength);
@@ -536,12 +534,12 @@ void testDbf(const char *pv, chtype type,
536534 " %s - %s - elem %lu exp '%s' act '%s'" , testPrefix, " New value check 1" ,
537535 i, " Nan" , json.newVal .at (i).c_str ());
538536 }
539- else if (isinf (*(value1 + i) && *(value1 + i) > 0 ) ) {
537+ else if (isinf (*(value1 + i)) && *(value1 + i) > 0 ) {
540538 testOk (!json.newVal .at (i).compare (" Infinity" ),
541539 " %s - %s - elem %lu exp '%s' act '%s'" , testPrefix, " New value check 1" ,
542540 i, " Infinity" , json.newVal .at (i).c_str ());
543541 }
544- else if (isinf (*(value1 + i) && *(value1 + i) < 0 ) ) {
542+ else if (isinf (*(value1 + i)) && *(value1 + i) < 0 ) {
545543 testOk (!json.newVal .at (i).compare (" -Infinity" ),
546544 " %s - %s - elem %lu exp '%s' act '%s'" , testPrefix, " New value check 1" ,
547545 i, " -Infinity" , json.newVal .at (i).c_str ());
0 commit comments