diff options
author | James Booth <boothj5@gmail.com> | 2014-04-26 00:36:36 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-04-26 00:36:36 +0100 |
commit | d6e92f62dc907d5da66f477884a4c0c728b84127 (patch) | |
tree | e77d8ad400874baa5edd7dde9ce66b1847fd89e9 /src/otr | |
parent | ab4ea80a70803d8d6335d8f5a8a4248e6d5423a4 (diff) | |
download | profani-tty-d6e92f62dc907d5da66f477884a4c0c728b84127.tar.gz |
Fixed cppcheck warnings
Diffstat (limited to 'src/otr')
-rw-r--r-- | src/otr/otr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c index 5424b09a..e80086af 100644 --- a/src/otr/otr.c +++ b/src/otr/otr.c @@ -436,13 +436,12 @@ _otr_decrypt_message(const char * const from, const char * const message, gboole { char *decrypted = NULL; OtrlTLV *tlvs = NULL; - OtrlTLV *tlv = NULL; int result = otrlib_decrypt_message(user_state, &ops, jid, from, message, &decrypted, &tlvs); // internal libotr message if (result == 1) { - tlv = otrl_tlv_find(tlvs, OTRL_TLV_DISCONNECTED); + OtrlTLV *tlv = otrl_tlv_find(tlvs, OTRL_TLV_DISCONNECTED); if (tlv) { ConnContext *context = otrlib_context_find(user_state, from, jid); |