From: Marcus Brinkmann Date: Sat, 29 Jul 2006 13:42:10 +0000 (+0000) Subject: 2006-07-29 Marcus Brinkmann X-Git-Tag: gpgme-1.1.4~33 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f3285b560992a39614c13dd5d738493c8d357d3a;p=gpgme.git 2006-07-29 Marcus Brinkmann * rungpg.c (read_status): Fix comparison disguising as an assignment. --- diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index a1b4fe9..e09335a 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2006-07-29 Marcus Brinkmann + + * rungpg.c (read_status): Fix comparison disguising as an + assignment. + 2005-03-24 Marcus Brinkmann * gpgme.c (gpgme_set_locale): Remove conditional on diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c index 349b24d..9b6cb2e 100644 --- a/gpgme/rungpg.c +++ b/gpgme/rungpg.c @@ -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)