2006-07-29 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Sat, 29 Jul 2006 13:42:10 +0000 (13:42 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Sat, 29 Jul 2006 13:42:10 +0000 (13:42 +0000)
* rungpg.c (read_status): Fix comparison disguising as an
assignment.

trunk/gpgme/ChangeLog
trunk/gpgme/rungpg.c

index a1b4fe9e59097f9219b40f096131af3415a59818..e09335a9b926fd8512d8e3dbb935c776cbbc4566 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-29  Marcus Brinkmann  <marcus@g10code.de>
+
+       * rungpg.c (read_status): Fix comparison disguising as an
+       assignment.
+
 2005-03-24  Marcus Brinkmann  <marcus@g10code.de>
 
        * gpgme.c (gpgme_set_locale): Remove conditional on
index 349b24dda385eb1b07f92bc649dde3063f425340..9b6cb2ed33787e7544cfa0585618d18e655153ab 100644 (file)
@@ -845,7 +845,7 @@ read_status (engine_gpg_t gpg)
          if (*p == '\n')
            {
              /* (we require that the last line is terminated by a LF) */
-             if (p > buffer && p[-1] = '\r')
+             if (p > buffer && p[-1] == '\r')
                p[-1] = 0;
              *p = 0;
              if (!strncmp (buffer, "[GNUPG:] ", 9)