diff options
| author | Werner Koch <[email protected]> | 2025-11-14 12:20:52 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2025-11-14 12:20:52 +0000 |
| commit | 94fa3c2b25a1979bb838c7d9f9f74375072f4efe (patch) | |
| tree | ecfb19643c75219380fe1d9b66816eb3b8c85533 /src/engine-assuan.c | |
| parent | doc: Add DCO for Chandler Davis (diff) | |
| download | gpgme-master.tar.gz gpgme-master.zip | |
* src/engine-gpg.c (gpg_new): Do not pass option --display if DISPLAY
is set to the empty string.
* src/engine-gpgsm.c (gpgsm_new): Likewiese for sending the display
option.
* src/engine-g13.c (g13_new): Ditto.
* src/engine-assuan.c (llass_new): Ditto.
* src/engine-uiserver.c (uiserver_new): Ditto.
--
GnuPG-bug-id: 7919
Diffstat (limited to 'src/engine-assuan.c')
| -rw-r--r-- | src/engine-assuan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine-assuan.c b/src/engine-assuan.c index e96313ff..654d41c8 100644 --- a/src/engine-assuan.c +++ b/src/engine-assuan.c @@ -265,7 +265,7 @@ llass_new (void **engine, const char *file_name, const char *home_dir, err = _gpgme_getenv ("DISPLAY", &dft_display); if (err) goto leave; - if (dft_display) + if (dft_display && *dft_display) { if (gpgrt_asprintf (&optstr, "OPTION display=%s", dft_display) < 0) { @@ -281,8 +281,11 @@ llass_new (void **engine, const char *file_name, const char *home_dir, if (err) goto leave; } + else + free (dft_display); } + if (llass->opt.gpg_agent) err = _gpgme_getenv ("GPG_TTY", &env_tty); |
