You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/04/15 11:41:03 UTC

[GitHub] [incubator-nuttx-apps] Ouss4 commented on a change in pull request #685: examples/mqttc: Makes fd invalid when connect() fails.

Ouss4 commented on a change in pull request #685:
URL: https://github.com/apache/incubator-nuttx-apps/pull/685#discussion_r613994331



##########
File path: examples/mqttc/mqttc_pub.c
##########
@@ -174,7 +174,9 @@ static int initserver(const FAR struct mqttc_cfg_s *cfg)
         }
 
       close(fd);
+      fd = -1;
     }
+
   while ((itr = itr->ai_next) != NULL);

Review comment:
       Did nxstyle complain about this?  AFAIK a new line isn't required here.




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org