diff options
author | watcherhd <watcherhd@gmail.com> | 2017-04-26 11:55:19 +0300 |
---|---|---|
committer | watcherhd <watcherhd@gmail.com> | 2017-04-26 11:55:19 +0300 |
commit | 522e00fafca3471971e759d7d1de77b82fa27037 (patch) | |
tree | 755a6fc16bb1900af4d7c8f3fadc4959a371389d /protocols/JabberG/src/jabber_omemo.cpp | |
parent | 64d578eaad10ff4fb7722985783bc16885957415 (diff) |
compilation fix (thanks sss)
Diffstat (limited to 'protocols/JabberG/src/jabber_omemo.cpp')
-rwxr-xr-x | protocols/JabberG/src/jabber_omemo.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_omemo.cpp b/protocols/JabberG/src/jabber_omemo.cpp index 4fdd5e2ee2..31daef82df 100755 --- a/protocols/JabberG/src/jabber_omemo.cpp +++ b/protocols/JabberG/src/jabber_omemo.cpp @@ -1249,12 +1249,10 @@ namespace omemo { char *jid_str = mir_u2a(jid);
int dev_id_int = _wtoi(dev_id);
signal_protocol_address *address = (signal_protocol_address*)mir_alloc(sizeof(signal_protocol_address)); //libsignal does not copy structure, so we must allocate one manually, does it free it on exit ?
- *address =
- {
- jid_str, //will libsignal free arrav for us on exit ?
- mir_strlen(jid_str),
- dev_id_int
- };
+ //rotten compillers support
+ address->name = jid_str; //will libsignal free arrav for us on exit ?
+ address->name_len = mir_strlen(jid_str);
+ address->device_id = dev_id_int;
session_builder *builder;
if (session_builder_create(&builder, sessions_internal[hContact][dev_id_int].store_context, address, global_context) < 0)
|