 <p>Thanks guys for the quick replies..Gabriel response gave me a good insight. However I stuck to Raphael Santos response. ...However, if Gabriel could kindly elaborate the point a bit more please...ok here is the fixed code</p> <pre><code>typedef struct rem_info { char ufrag[80]; char pwd[80]; unsigned comp_cnt; pj_sockaddr def_addr[PJ_ICE_MAX_COMP]; unsigned cand_cnt; pj_ice_sess_cand cand[PJ_ICE_ST_MAX_CAND]; }rem_info; void reset_rem_info(rem_info *prem) { pj_bzero(prem, sizeof(rem_info)); } int main() { rem_info prem; reset_rem_info(&amp;prem); return 0; } </code></pre> <p>The change got rid of the warnings and the segmentation dump...</p> <p>THANKS A LOT GUYSSS</p>