acassis commented on code in PR #7912:
URL: https://github.com/apache/nuttx/pull/7912#discussion_r1051594340


##########
net/local/local_connect.c:
##########
@@ -238,7 +238,9 @@ int psock_local_connect(FAR struct socket *psock,
 {
   FAR struct local_conn_s *client;
   FAR struct sockaddr_un *unaddr = (FAR struct sockaddr_un *)addr;
+  FAR const char *unpath = unaddr->sun_path;
   FAR struct local_conn_s *conn = NULL;

Review Comment:
   @pkarashchenko is alls a good practice to NULL initialize pointers to avoid 
Dangling Pointer? https://en.wikipedia.org/wiki/Dangling_pointer



-- 
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: commits-unsubscr...@nuttx.apache.org

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

Reply via email to