title: Is it good style to memset a struct before using it?
body: <p>Once I learned signals and there was a listing with handling signals.</p>
  
  <p>There was a <code>struct sigaction</code> which was first <code>memset()</code> to all bytes zero with the following line:</p>
  
  <pre><code>memset(&amp;sa, 0, sizeof(sa));
  </code></pre>
  
  <p>And I'm not sure why author uses this approach.</p>