* rungpg.c (gpg_new): Handle return value of _gpgme_getenv (fixes
small memory leak).
+2007-09-13 Marcus Brinkmann <marcus@g10code.de>
+
+ * rungpg.c (gpg_new): Handle return value of _gpgme_getenv (fixes
+ small memory leak).
+
2007-09-07 Marcus Brinkmann <marcus@g10code.de>
* Makefile.am (libgpgme_qt_la_SOURCES): Move
goto leave;
rc = _gpgme_getenv ("DISPLAY", &dft_display);
+ if (rc)
+ goto leave;
if (dft_display)
{
rc = add_arg (gpg, "--display");
free (dft_display);
}
- if (rc)
- goto leave;
if (isatty (1))
{
if (!rc)
{
rc = _gpgme_getenv ("TERM", &dft_ttytype);
- if (!rc)
+ if (rc)
goto leave;
rc = add_arg (gpg, "--ttytype");