about summary refs log tree commit diff stats
path: root/src/otr
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-01 17:09:03 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-01 17:09:03 +0200
commita92942a4b7e166e187e167247c2614d3868d60a3 (patch)
tree6a3975dbff60e164133fe05e7ae5f3812fdea8b8 /src/otr
parentb96e25d9c3716a659fc7c475fdf8129cbd4a7839 (diff)
downloadprofani-tty-a92942a4b7e166e187e167247c2614d3868d60a3.tar.gz
otr.c: Simplify freeing
free(NULL) is a noop.
Diffstat (limited to 'src/otr')
-rw-r--r--src/otr/otr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index 04678d04..21bb222e 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -375,9 +375,7 @@ otr_keygen(ProfAccount *account)
         return;
     }
 
-    if (jid) {
-        free(jid);
-    }
+    free(jid);
     jid = strdup(account->jid);
     log_info("Generating OTR key for %s", jid);