otr.c: Simplify freeing

free(NULL) is a noop.
This commit is contained in:
Michael Vetter
2020-07-01 17:09:03 +02:00
parent b96e25d9c3
commit a92942a4b7

View File

@@ -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);