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/10/23 13:08:30 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a diff in pull request #7398: Fix error: mmcsd/mmcsd_sdio.c:2669:35: error: 'buffer' may be used uninitialized [-Werror=maybe-uninitialized]

pkarashchenko commented on code in PR #7398:
URL: https://github.com/apache/incubator-nuttx/pull/7398#discussion_r1002708020


##########
drivers/mmcsd/mmcsd_sdio.c:
##########
@@ -2659,6 +2659,8 @@ static int mmcsd_read_csd(FAR struct mmcsd_state_s *priv)
       return -EPERM;
     }
 
+  memset(buffer, sizeof(buffer));

Review Comment:
   ```suggestion
     memset(buffer, 0, sizeof(buffer));
   ```
   



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