about summary refs log tree commit diff stats
path: root/src/omemo
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-07-23 07:44:41 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-07-23 08:34:46 +0200
commitfade378feec178ec8caabc0db1cefc2e81b19804 (patch)
tree56c8fb26e658aeffc23dd5dce252ba2f30da2dc7 /src/omemo
parentbb08c7270d525b47172445feefdc3ed33eb93cd6 (diff)
downloadprofani-tty-fade378feec178ec8caabc0db1cefc2e81b19804.tar.gz
Dont use not needed strdup() in save_identity()
I don't see a reason for strdupping here.
Diffstat (limited to 'src/omemo')
-rw-r--r--src/omemo/store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/omemo/store.c b/src/omemo/store.c
index 2efcae4c..fe7cf771 100644
--- a/src/omemo/store.c
+++ b/src/omemo/store.c
@@ -378,7 +378,7 @@ save_identity(const signal_protocol_address *address, uint8_t *key_data,
 
     signal_buffer *buffer = signal_buffer_create(key_data, key_len);
 
-    GHashTable *trusted = g_hash_table_lookup(identity_key_store->trusted, strdup(address->name));
+    GHashTable *trusted = g_hash_table_lookup(identity_key_store->trusted, address->name);
     if (!trusted) {
         trusted = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, (GDestroyNotify)signal_buffer_free);
         g_hash_table_insert(identity_key_store->trusted, strdup(address->name), trusted);
/a> 145 146 147 148 149
lass='alt'>
4a943d4e ^


1
2
3
4
5
6
7