Hacker News new | ask | show | jobs
by saagarjha 1086 days ago
Compiles are free to not zero padding bytes if a struct is passed to memset but there are some situations where padding is not unspecified, for example if you do partial initialization of it.
1 comments

Could you explain what you mean by partial initialization?

  = { .foo = bar };