szsam opened a new pull request, #13193:
URL: https://github.com/apache/nuttx/pull/13193

   Prior to this commit, i2c and at24 may be used uninitialized on line 113, 
117, 129, and 143 when gd32_at24_wr_test() is called the second time because 
these two variables are not static. I don't think making them static is the 
correct fix because i2c is released at the end of this function. Fixed by 
removing the `if (!initialized)` condition surrounding the initialization of 
i2c and at24, making them initialized at every call to this function.
   
   ## Summary
   
   ## Impact
   
   ## Testing
    gd32f450zk-eval:i2c0testnsh
   


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