diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2012-07-27 17:24:12 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2012-07-27 17:24:12 +0000 |
commit | 3c0866d754867d94b8d3160d61e01b6b362d1ccb (patch) | |
tree | d4b194e26b59689bfde268f73e63fd6bc5fd3373 | |
parent | c81f8f5b3e46bc9e9295be72bccfce034bebcbae (diff) |
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
-rw-r--r-- | pjsip-apps/src/samples/icedemo.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |