]> granicus.if.org Git - neomutt/commitdiff
Fix cast from unsigned int to bit field
authorBertram Scharpf <software@bertram-scharpf.de>
Tue, 26 Jun 2018 19:41:12 +0000 (21:41 +0200)
committerRichard Russon <rich@flatcap.org>
Thu, 19 Jul 2018 10:46:55 +0000 (11:46 +0100)
hcache/serialize.c

index dfa93a41ba55d87191919493c28802eb17b64dd1..267457ee7aa1c5a6bf6e8493c30615e96ce1cce2 100644 (file)
@@ -239,7 +239,7 @@ void serial_restore_address(struct Address **a, const unsigned char *d, int *off
     serial_restore_char(&(*a)->personal, d, off, convert);
     serial_restore_char(&(*a)->mailbox, d, off, false);
     serial_restore_int(&g, d, off);
-    (*a)->group = g;
+    (*a)->group = g ? true : false;
     a = &(*a)->next;
     counter--;
   }