Fix bad parentheses in stat rc
authorErik Hovland <erik@hovland.org>
Tue, 16 Dec 2008 07:45:37 +0000 (23:45 -0800)
committerErik Hovland <erik@hovland.org>
Tue, 16 Dec 2008 07:45:37 +0000 (23:45 -0800)
ChangeLog
mh.c

index e6437d82cb47d8e16d3edf6919c72777305cd786..6a39c89b145bba20246cc642b50fad65e8fd8cbb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-15 23:42 -0800  Erik Hovland  <erik@hovland.org>  (2991ac6bc363)
+
+       * bcache.c: snprintf returns int, not size_t
+
+       * muttlib.c: Always va_end(ap_retry) in mutt_buffer_printf
+
 2008-12-15 23:11 -0800  Brendan Cully  <brendan@kublai.com>  (101a8bcba613)
 
        * imap/BUGS: imap/BUGS is superseded by the BTS
diff --git a/mh.c b/mh.c
index f8e66e96aed9b9286376e3c0c59929237c0d2790..050cf5f4548d7731bdba7e524c4c7ce0a248a308 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -1982,7 +1982,7 @@ int mh_check_mailbox (CONTEXT * ctx, int *index_hint)
   
   /* create .mh_sequences when there isn't one. */
   snprintf (buf, sizeof (buf), "%s/.mh_sequences", ctx->path);
-  if ((i = stat (buf, &st_cur) == -1) && errno == ENOENT)
+  if ((i = stat (buf, &st_cur)) == -1 && errno == ENOENT)
   {
     char *tmp;
     FILE *fp = NULL;