From 3c0866d754867d94b8d3160d61e01b6b362d1ccb Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Fri, 27 Jul 2012 17:24:12 +0000 Subject: Re #1559: fixed uninitialized variable bug in icedemo sample app (thanks Magnus Kempe for the report and the fix!). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4217 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/samples/icedemo.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pjsip-apps/src/samples/icedemo.c') diff --git a/pjsip-apps/src/samples/icedemo.c b/pjsip-apps/src/samples/icedemo.c index 79bdb5fa..943befb2 100644 --- a/pjsip-apps/src/samples/icedemo.c +++ b/pjsip-apps/src/samples/icedemo.c @@ -614,6 +614,7 @@ static int encode_session(char buffer[], unsigned maxlen) } /* Enumerate all candidates for this component */ + cand_cnt = PJ_ARRAY_SIZE(cand); status = pj_ice_strans_enum_cands(icedemo.icest, comp+1, &cand_cnt, cand); if (status != PJ_SUCCESS) -- cgit v1.2.3