title: libevent: uninitialized structure pointer
body: <p>I have struct pointer in code</p>
  
  <pre><code>struct evkeyvalq *headers;
  </code></pre>
  
  <p>now I give call to a function which would fill some information in the structure.</p>
  
  <pre><code>evhttp_parse_query(uri, headers)
  </code></pre>
  
  <p>I get segmentation fault at this line. what would be the correct way to doing this. Thanks</p>