]> granicus.if.org Git - neomutt/commitdiff
lgtm: fix warning
authorRichard Russon <rich@flatcap.org>
Tue, 22 Oct 2019 11:53:43 +0000 (12:53 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 22 Oct 2019 12:19:09 +0000 (13:19 +0100)
sendlib.c

index bf004b33fb2e5c052398f13afd0bb8264e61e6f7..df679a8566919e833220d80cfedffda26397129f 100644 (file)
--- a/sendlib.c
+++ b/sendlib.c
@@ -550,7 +550,7 @@ int mutt_write_mime_body(struct Body *a, FILE *fp)
   }
 
   /* This is pretty gross, but it's the best solution for now... */
-  if ((WithCrypto & APPLICATION_PGP) && (a->type == TYPE_APPLICATION) &&
+  if (((WithCrypto & APPLICATION_PGP) != 0) && (a->type == TYPE_APPLICATION) &&
       (mutt_str_strcmp(a->subtype, "pgp-encrypted") == 0) && !a->filename)
   {
     fputs("Version: 1\n", fp);