acassis commented on code in PR #3606:
URL: https://github.com/apache/nuttx-apps/pull/3606#discussion_r3529624724


##########
examples/wgetjson/wgetjson_main.c:
##########
@@ -113,6 +113,11 @@ static int wgetjson_callback(FAR char **buffer, int 
offset, int datend,
   if (!g_json_buff)
     {
       g_json_buff = malloc(len + 1);
+      if (!g_json_buff)

Review Comment:
   Yes, since it it not boolean, it is better to test with the right type



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to