You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "pkarashchenko (via GitHub)" <gi...@apache.org> on 2023/01/25 21:45:06 UTC

[GitHub] [nuttx-apps] pkarashchenko commented on a diff in pull request #1505: apps/system/nxplayer&nxlooper: fix codechecker warning

pkarashchenko commented on code in PR #1505:
URL: https://github.com/apache/nuttx-apps/pull/1505#discussion_r1087213312


##########
system/nxlooper/nxlooper_main.c:
##########
@@ -264,7 +264,7 @@ static int nxlooper_cmd_volume(FAR struct nxlooper_s *plooper, char *parg)
     {
       /* Get the percentage value from the argument */
 
-      percent = (uint16_t)(atof(parg) * 10.0);
+      percent = (uint16_t)(strtof(parg, NULL) * 10.0f);

Review Comment:
   The conversion error is not handled anyway.



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