aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2006-07-29 13:42:10 +0000
committerMarcus Brinkmann <[email protected]>2006-07-29 13:42:10 +0000
commitf3285b560992a39614c13dd5d738493c8d357d3a (patch)
treea196c96b066ba13689477eadee17df2854414ad2
parentdoc/ (diff)
downloadgpgme-f3285b560992a39614c13dd5d738493c8d357d3a.tar.gz
gpgme-f3285b560992a39614c13dd5d738493c8d357d3a.zip
2006-07-29 Marcus Brinkmann <[email protected]>
* rungpg.c (read_status): Fix comparison disguising as an assignment.
Diffstat (limited to '')
-rw-r--r--gpgme/ChangeLog5
-rw-r--r--gpgme/rungpg.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog
index a1b4fe9e..e09335a9 100644
--- a/gpgme/ChangeLog
+++ b/gpgme/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-29 Marcus Brinkmann <[email protected]>
+
+ * rungpg.c (read_status): Fix comparison disguising as an
+ assignment.
+
2005-03-24 Marcus Brinkmann <[email protected]>
* gpgme.c (gpgme_set_locale): Remove conditional on
diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c
index 349b24dd..9b6cb2ed 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)