From a92942a4b7e166e187e167247c2614d3868d60a3 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 1 Jul 2020 17:09:03 +0200 Subject: otr.c: Simplify freeing free(NULL) is a noop. --- src/otr/otr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/otr') 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); -- cgit 1.4.1-2-gfad0