From 44aa2fd1bf62c29cf4577005132ddaff35258987 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 4 May 2015 23:41:22 +0100 Subject: [PATCH] Use null check convention in gpg.c --- src/pgp/gpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }