2006-07-29 Marcus Brinkmann <marcus@g10code.de>

* rungpg.c (read_status): Fix comparison disguising as an
	assignment.
This commit is contained in:
Marcus Brinkmann 2006-07-29 13:42:10 +00:00
parent fba48de1ee
commit f3285b5609
2 changed files with 6 additions and 1 deletions

View 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> 2005-03-24 Marcus Brinkmann <marcus@g10code.de>
* gpgme.c (gpgme_set_locale): Remove conditional on * gpgme.c (gpgme_set_locale): Remove conditional on

View File

@ -845,7 +845,7 @@ read_status (engine_gpg_t gpg)
if (*p == '\n') if (*p == '\n')
{ {
/* (we require that the last line is terminated by a LF) */ /* (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[-1] = 0;
*p = 0; *p = 0;
if (!strncmp (buffer, "[GNUPG:] ", 9) if (!strncmp (buffer, "[GNUPG:] ", 9)