Commit 26202dd0 authored by Philip Withnall's avatar Philip Withnall

agent: Eliminate a memset() for local variable initialisation

Stack variables can be initialised to zero by explicit assignment.

This introduces no functional changes.
parent 4441eea8
......@@ -304,9 +304,7 @@ gboolean
component_find_pair (Component *cmp, NiceAgent *agent, const gchar *lfoundation, const gchar *rfoundation, CandidatePair *pair)
{
GSList *i;
CandidatePair result;
memset (&result, 0, sizeof(result));
CandidatePair result = { 0, };
for (i = cmp->local_candidates; i; i = i->next) {
NiceCandidate *candidate = i->data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment