From 3ad6f89275e6aa1906324a164dc794b9e12f5196 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 12 Dec 2004 14:58:12 +0000 Subject: [PATCH] 2004-12-12 Marcus Brinkmann * engine.c (_gpgme_set_engine_info): Fix assertion. --- gpgme/ChangeLog | 4 ++++ gpgme/engine.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 5cb0b9d..47eb3aa 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2004-12-12 Marcus Brinkmann + + * engine.c (_gpgme_set_engine_info): Fix assertion. + 2004-12-11 Marcus Brinkmann * util.h [HAVE_CONFIG_H && HAVE_TTYNAME_R] (ttyname_r): Define diff --git a/gpgme/engine.c b/gpgme/engine.c index abab84e..b331e9a 100644 --- a/gpgme/engine.c +++ b/gpgme/engine.c @@ -305,7 +305,7 @@ _gpgme_set_engine_info (gpgme_engine_info_t info, gpgme_protocol_t proto, else { new_file_name = engine_get_file_name (proto); - assert (file_name); + assert (new_file_name); new_file_name = strdup (new_file_name); } if (!new_file_name) -- 2.26.2