diff options
author | James Booth <boothj5@gmail.com> | 2015-06-24 19:19:44 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-06-24 19:19:44 +0100 |
commit | ac454fb1cc5f26a89b03ef6fd40d74c73ca46c33 (patch) | |
tree | 80495689632db8f7f0a76d905f54663c07833a5f | |
parent | 17919298f78531dbec1eb1b22db1dfc8ad76d854 (diff) | |
download | profani-tty-ac454fb1cc5f26a89b03ef6fd40d74c73ca46c33.tar.gz |
Removed NULL checks when not required
-rw-r--r-- | src/pgp/gpg.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c index 32259f61..24e81336 100644 --- a/src/pgp/gpg.c +++ b/src/pgp/gpg.c @@ -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 |