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 <neal@g10code.com>
This commit is contained in:
Neal H. Walfield 2015-05-06 14:50:38 +02:00
parent d3b5cad234
commit 74944330ba
1 changed files with 1 additions and 1 deletions

View File

@ -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"))
{