about summary refs log tree commit diff stats
path: root/src/pgp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-04 23:41:22 +0100
committerJames Booth <boothj5@gmail.com>2015-05-04 23:41:22 +0100
commit44aa2fd1bf62c29cf4577005132ddaff35258987 (patch)
tree1dde3a0839bf92ef95d9266a179be1ae935f3395 /src/pgp
parent3fd9692aecf190d079b119f66e046c8ed9013031 (diff)
downloadprofani-tty-44aa2fd1bf62c29cf4577005132ddaff35258987.tar.gz
Use null check convention in gpg.c
Diffstat (limited to 'src/pgp')
-rw-r--r--src/pgp/gpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c
index a998ecc9..87bd370c 100644
--- a/src/pgp/gpg.c
+++ b/src/pgp/gpg.c
@@ -222,7 +222,7 @@ p_gpg_sign(const char * const str, const char * const fp)
 
     size_t len = 0;
     char *signed_str = gpgme_data_release_and_get_mem(signed_data, &len);
-    if (signed_str != NULL) {
+    if (signed_str) {
         signed_str[len] = 0;
         result = _remove_header_footer(signed_str, PGP_SIGNATURE_FOOTER);
     }