Luigi Rizzo wrote:
it's probably a leftover from previous code when strncpy was used. Probably safe to remove it.
Agreed.
i'd say yes. in this case the memset is a quick way to make sure the struct is consistently initialized. Many of them should disappear by replacing malloc() + memset() with calloc() calls.
Correct on both points. _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
