aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-05-06 12:50:38 +0000
committerNeal H. Walfield <[email protected]>2015-05-07 13:03:25 +0000
commit74944330ba7229ed0cbe23cc0f573962a444bd07 (patch)
tree2617080cc7ab398df2fde529a14eaa66273dc65c
parentagent: Avoid magic numbers. Use more accurate names. (diff)
downloadgnupg-74944330ba7229ed0cbe23cc0f573962a444bd07.tar.gz
gnupg-74944330ba7229ed0cbe23cc0f573962a444bd07.zip
agent: Or in the value; don't overwrite the variable.
* agent/call-pinentry.c (pinentry_status_cb): Or in PINENTRY_STATUS_CLOSE_BUTTON; don't overwrite *FLAG. -- Signed-off-by: Neal H. Walfield <[email protected]>
-rw-r--r--agent/call-pinentry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index d24a75978..925386637 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -727,7 +727,7 @@ pinentry_status_cb (void *opaque, const char *line)
if ((args = has_leading_keyword (line, "BUTTON_INFO")))
{
if (!strcmp (args, "close"))
- *flag = PINENTRY_STATUS_CLOSE_BUTTON;
+ *flag |= PINENTRY_STATUS_CLOSE_BUTTON;
}
else if (has_leading_keyword (line, "PIN_REPEATED"))
{