python/cryptography: native 64-bit build
[unleashed-userland.git] / components / stardict / patches / compositelookup_cpp.patch
blob74b993d85fae16334dd617f9a4000459a785b713
1 This patch is from OpenSUSE .src.rpm for the following crash on startup:
3 ERROR:compositelookup.cpp:53:void CompositeLookup::send_net_dict_request(const string&, const string&): assertion failed: (NetDictRequests.end() == std::find(NetDictRequests.begin(), NetDictRequests.end(), request))
5 --- a/dict/src/lib/compositelookup.cpp
6 +++ b/dict/src/lib/compositelookup.cpp
7 @@ -50,8 +50,10 @@
8 void CompositeLookup::send_net_dict_request(const std::string& dict_id, const std::string& key)
10 NetDictRequest request(dict_id, key);
11 - g_assert(NetDictRequests.end() == std::find(NetDictRequests.begin(), NetDictRequests.end(), request));
12 - NetDictRequests.push_back(request);
13 + if(NetDictRequests.end() == std::find(NetDictRequests.begin(), NetDictRequests.end(), request))
14 + {
15 + NetDictRequests.push_back(request);
16 + }
19 /* returns true if got expected response */