You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "crafcat7 (via GitHub)" <gi...@apache.org> on 2024/08/06 05:58:28 UTC

[PR] testing/memstress:Initialize the pointer [nuttx-apps]

crafcat7 opened a new pull request, #2467:
URL: https://github.com/apache/nuttx-apps/pull/2467

   
   ## Summary
   Initialize the pointer to avoid the pointer being unknown when the memory alloc fails
   ```
   In function 'memorystress_iter',
       inlined from 'memstress_main' at memorystress_main.c:475:10:
   memorystress_main.c:289:10: error: 'ptr' may be used uninitialized [-Werror=maybe-uninitialized]
     289 |       if (ptr == NULL)
         |          ^
   memorystress_main.c: In function 'memstress_main':
   memorystress_main.c:248:20: note: 'ptr' was declared here
     248 |       FAR uint8_t *ptr;
         |                    ^~~
   ```
   ## Impact
   
   ## Testing
   
   


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


Re: [PR] testing/memstress:Initialize the pointer [nuttx-apps]

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis merged PR #2467:
URL: https://github.com/apache/nuttx-apps/pull/2467


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