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 2022/11/21 17:11:22 UTC

[GitHub] [incubator-nuttx-apps] xiaoxiang781216 commented on a diff in pull request #1423: fix issue with reading ipv6 routes.

xiaoxiang781216 commented on code in PR #1423:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1423#discussion_r1028324237


##########
netutils/netlib/netlib_ipv6route.c:
##########
@@ -131,9 +131,12 @@ ssize_t netlib_read_ipv6route(FILE *stream,
       return 0;
     }
 
-  /* The first line of the group should consist of a number index */
+  /* The first non-space char of the first line of the group should consist of a number index */
+  int idx = 0;
+  while (isspace(line[idx]))
+    idx++;

Review Comment:
   Please squash the change into one patch, @mlondono74 



-- 
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-unsubscribe@nuttx.apache.org

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