From 522e00fafca3471971e759d7d1de77b82fa27037 Mon Sep 17 00:00:00 2001 From: watcherhd Date: Wed, 26 Apr 2017 11:55:19 +0300 Subject: compilation fix (thanks sss) --- protocols/JabberG/src/jabber_omemo.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'protocols/JabberG/src') 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) -- cgit v1.2.3