mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 05:06:21 +00:00
otr.c: Simplify freeing
free(NULL) is a noop.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user