summaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-05-14 10:31:46 +0200
committerWerner Koch <wk@gnupg.org>2019-05-14 10:31:46 +0200
commit54e96c6fd262bd0090fec836c97d7fdb04bd6129 (patch)
tree93ead3e2aac01b8317d18a31b980f7d7fec5e4e2 /agent/command.c
parentagent: correct length for uri and comment on 64-bit big-endian platforms (diff)
downloadgnupg2-54e96c6fd262bd0090fec836c97d7fdb04bd6129.tar.xz
gnupg2-54e96c6fd262bd0090fec836c97d7fdb04bd6129.zip
agent: Replace most assert by log_assert.
--
Diffstat (limited to 'agent/command.c')
-rw-r--r--agent/command.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/agent/command.c b/agent/command.c
index 6efd1bff2..c056eb3f0 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -30,7 +30,6 @@
#include <string.h>
#include <ctype.h>
#include <unistd.h>
-#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
@@ -2212,7 +2211,7 @@ cmd_import_key (assuan_context_t ctx, char *line)
goto leave; /* Invalid canonical encoded S-expression. */
if (passphrase)
{
- assert (!opt_unattended);
+ log_assert (!opt_unattended);
if (!cache_nonce)
{
char buf[12];