1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Use null check convention in gpg.c

This commit is contained in:
James Booth 2015-05-04 23:41:22 +01:00
parent 3fd9692aec
commit 44aa2fd1bf

View File

@ -222,7 +222,7 @@ p_gpg_sign(const char * const str, const char * const fp)
size_t len = 0; size_t len = 0;
char *signed_str = gpgme_data_release_and_get_mem(signed_data, &len); char *signed_str = gpgme_data_release_and_get_mem(signed_data, &len);
if (signed_str != NULL) { if (signed_str) {
signed_str[len] = 0; signed_str[len] = 0;
result = _remove_header_footer(signed_str, PGP_SIGNATURE_FOOTER); result = _remove_header_footer(signed_str, PGP_SIGNATURE_FOOTER);
} }