<<< Date Index >>>     <<< Thread Index >>>

[PATCH 1 of 3] i should be the return value of stat, not the return of the conditional check



# HG changeset patch
# User Erik Hovland <erik@xxxxxxxxxxx>
# Date 1235084856 28800
# Node ID 0c8acbc98286b13b311d0f0c24987585eff05bf4
# Parent  25fab4b2fb115712cbf75becd51988a9c8b15464
i should be the return value of stat, not the return of the conditional check

diff -r 25fab4b2fb11 -r 0c8acbc98286 mh.c
--- a/mh.c      Thu Feb 19 15:06:15 2009 -0800
+++ b/mh.c      Thu Feb 19 15:07:36 2009 -0800
@@ -1919,7 +1919,7 @@
   
   /* 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;