about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-03-25 16:45:30 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-03-25 16:45:30 +0100
commite93d4ff33112e1b79f0eebaedff1639a0a0f3b08 (patch)
tree5d38eacd940c0df95c87f141bac1c14f97914ffb /src
parentc0e339130e592aeca2ad59e429887b9737df5c6a (diff)
downloadprofani-tty-e93d4ff33112e1b79f0eebaedff1639a0a0f3b08.tar.gz
database: simplify _log_database_add_outgoing
Diffstat (limited to 'src')
-rw-r--r--src/database.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index dc1a4fc5..c04fea72 100644
--- a/src/database.c
+++ b/src/database.c
@@ -181,8 +181,7 @@ _log_database_add_outgoing(char* type, const char* const id, const char* const b
     msg->timestamp = g_date_time_new_now_local(); //TODO: get from outside. best to have whole ProfMessage from outside
     msg->enc = enc;
 
-    const char* jid = connection_get_fulljid();
-    Jid* myjid = jid_create(jid);
+    Jid* myjid = jid_create(connection_get_fulljid());
 
     _add_to_db(msg, type, myjid, msg->from_jid); // TODO: myjid now in profmessage