Explorar o código

Fix incorrect return

Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
cf9d57d56c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cJSON.c

+ 1 - 1
cJSON.c

@@ -921,7 +921,7 @@ char *cJSON_PrintBuffered(const cJSON *item, int prebuffer, cjbool fmt)
 
     if (prebuffer < 0)
     {
-        return false;
+        return NULL;
     }
 
     p.buffer = (unsigned char*)cJSON_malloc((size_t)prebuffer);