Explorar o código

fix(stringCopy): 字符串拷贝取消等0判断

RyanCW hai 1 ano
pai
achega
87bc5b75ea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mqttclient/RyanMqttUtile.c

+ 1 - 1
mqttclient/RyanMqttUtile.c

@@ -22,7 +22,7 @@ RyanMqttError_e RyanMqttStringCopy(char **dest, char *rest, uint32_t strLen)
     char *str2 = NULL;
     RyanMqttAssert(NULL != dest);
     RyanMqttAssert(NULL != rest);
-    RyanMqttCheck(0 != strLen, RyanMqttFailedError, rlog_d);
+    // RyanMqttCheck(0 != strLen, RyanMqttFailedError, rlog_d);
 
     str2 = (char *)platformMemoryMalloc(strLen + 1);
     if (NULL == str2)