diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-07-01 17:09:03 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-07-01 17:09:03 +0200 |
commit | a92942a4b7e166e187e167247c2614d3868d60a3 (patch) | |
tree | 6a3975dbff60e164133fe05e7ae5f3812fdea8b8 /src/otr | |
parent | b96e25d9c3716a659fc7c475fdf8129cbd4a7839 (diff) | |
download | profani-tty-a92942a4b7e166e187e167247c2614d3868d60a3.tar.gz |
otr.c: Simplify freeing
free(NULL) is a noop.
Diffstat (limited to 'src/otr')
-rw-r--r-- | src/otr/otr.c | 4 |
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); |