You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
Heh, weird, I thought I was using -Wall -Wextra but apperently not :) Thanks for catching.
Anyway, I even don't think the memset() is needed since static variables are guaranteed to be initialized to 0's (at least AFAIK).
Edit:
Actually, this memset() bypasses the check a few lines down to avoid calling create_properties_dialog() more than once, not that it's a big deal.
fa3b07b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh, weird, I thought I was using -Wall -Wextra but apperently not :) Thanks for catching.
Anyway, I even don't think the memset() is needed since static variables are guaranteed to be initialized to 0's (at least AFAIK).
Edit:
Actually, this memset() bypasses the check a few lines down to avoid calling create_properties_dialog() more than once, not that it's a big deal.
fa3b07b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, yes I messed that up. I'll remove the memset now if we can rely on static zeroing.