xiaoxiang781216 commented on code in PR #7924:
URL: https://github.com/apache/nuttx/pull/7924#discussion_r1053102838


##########
drivers/video/fb.c:
##########
@@ -388,6 +388,7 @@ static int fb_ioctl(FAR struct file *filep, int cmd, 
unsigned long arg)
 
           DEBUGASSERT(fb->vtable != NULL &&
                       fb->vtable->getoverlayinfo != NULL);
+          memset(&oinfo, 0, sizeof(oinfo));

Review Comment:
   overlay/display is an input field, memset ensure it contain a determinate 
value.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to