mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 19:26: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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jid) {
|
free(jid);
|
||||||
free(jid);
|
|
||||||
}
|
|
||||||
jid = strdup(account->jid);
|
jid = strdup(account->jid);
|
||||||
log_info("Generating OTR key for %s", jid);
|
log_info("Generating OTR key for %s", jid);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user