summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2014-08-12 11:50:16 +0000
committerNanang Izzuddin <nanang@teluu.com>2014-08-12 11:50:16 +0000
commitab136ddcf1c2cc5c7599cd815441794f37bdaee1 (patch)
tree14331a41f93eacb0605a29cc42733862a82bce5a
parent3f1b436f1cdb8a30d9e67920d51836a2cf7f7e95 (diff)
Misc (re #1751): Uninitialized variable 'body.tsxState.type' in PJSUA2 in SipEvent::fromPj() (thanks Thomas Steinacher for the report and the fix).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4884 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsua2/siptypes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/pjsip/src/pjsua2/siptypes.cpp b/pjsip/src/pjsua2/siptypes.cpp
index f5e55ec2..2b5ddc3e 100644
--- a/pjsip/src/pjsua2/siptypes.cpp
+++ b/pjsip/src/pjsua2/siptypes.cpp
@@ -448,6 +448,7 @@ void SipEvent::fromPj(const pjsip_event &ev)
body.tsxState.prevState = (pjsip_tsx_state_e)
ev.body.tsx_state.prev_state;
body.tsxState.tsx.fromPj(*ev.body.tsx_state.tsx);
+ body.tsxState.type = ev.body.tsx_state.type;
if (body.tsxState.type == PJSIP_EVENT_TX_MSG) {
if (ev.body.tsx_state.src.tdata)
body.tsxState.src.tdata.fromPj(*ev.body.tsx_state.src.tdata);