diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-03-25 16:44:36 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-03-25 16:44:36 +0100 |
commit | c0e339130e592aeca2ad59e429887b9737df5c6a (patch) | |
tree | 34e5d53de0085706e4dfb4495154b2ba561cbec8 | |
parent | e09f3fb615464e50269d0e8a7b05ba089aafd2b2 (diff) | |
download | profani-tty-c0e339130e592aeca2ad59e429887b9737df5c6a.tar.gz |
database: simplify log_database_add_incoming
-rw-r--r-- | src/database.c | 3 |
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); |