diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-07-23 07:44:41 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-07-23 08:34:46 +0200 |
commit | fade378feec178ec8caabc0db1cefc2e81b19804 (patch) | |
tree | 56c8fb26e658aeffc23dd5dce252ba2f30da2dc7 /src/omemo | |
parent | bb08c7270d525b47172445feefdc3ed33eb93cd6 (diff) | |
download | profani-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.c | 2 |
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); |