about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-03-25 16:44:36 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-03-25 16:44:36 +0100
commitc0e339130e592aeca2ad59e429887b9737df5c6a (patch)
tree34e5d53de0085706e4dfb4495154b2ba561cbec8
parente09f3fb615464e50269d0e8a7b05ba089aafd2b2 (diff)
downloadprofani-tty-c0e339130e592aeca2ad59e429887b9737df5c6a.tar.gz
database: simplify log_database_add_incoming
-rw-r--r--src/database.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index 4919dc3d..dc1a4fc5 100644
--- a/src/database.c
+++ b/src/database.c
@@ -161,8 +161,7 @@ log_database_add_incoming(ProfMessage* message)
     if (message->to_jid) {
         _add_to_db(message, NULL, message->from_jid, message->to_jid);
     } else {
-        const char* jid = connection_get_fulljid();
-        Jid* myjid = jid_create(jid);
+        Jid* myjid = jid_create(connection_get_fulljid());
 
         _add_to_db(message, NULL, message->from_jid, myjid);