From f3285b560992a39614c13dd5d738493c8d357d3a Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 29 Jul 2006 13:42:10 +0000 Subject: [PATCH] 2006-07-29 Marcus Brinkmann * rungpg.c (read_status): Fix comparison disguising as an assignment. --- gpgme/ChangeLog | 5 +++++ gpgme/rungpg.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 2.26.2