mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Removed NULL checks when not required
This commit is contained in:
parent
17919298f7
commit
ac454fb1cc
@ -84,10 +84,8 @@ p_gpg_close(void)
|
||||
fpskeyfile = NULL;
|
||||
}
|
||||
|
||||
if (fpsloc) {
|
||||
free(fpsloc);
|
||||
fpsloc = NULL;
|
||||
}
|
||||
free(fpsloc);
|
||||
fpsloc = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
@ -178,10 +176,8 @@ p_gpg_on_disconnect(void)
|
||||
fpskeyfile = NULL;
|
||||
}
|
||||
|
||||
if (fpsloc) {
|
||||
free(fpsloc);
|
||||
fpsloc = NULL;
|
||||
}
|
||||
free(fpsloc);
|
||||
fpsloc = NULL;
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user