diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libnpass/gpg.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libnpass/gpg.c b/src/libnpass/gpg.c index f193363..a729028 100644 --- a/src/libnpass/gpg.c +++ b/src/libnpass/gpg.c @@ -9,11 +9,13 @@ #include "util.h" -#define gpg_err_ret(err) \ - if (err) { \ - gpg_cleanup(); \ - err_ret(1, "%s: %s", gpgme_strsource(err), gpgme_strerror(err)); \ - } +#define gpg_err_ret(err) do { \ + if (err) { \ + gpg_cleanup(); \ + err_ret(1, "%s: %s", \ + gpgme_strsource(err), gpgme_strerror(err)); \ + } \ +} while (0) static gpgme_ctx_t ctx = NULL; static gpgme_key_t key = NULL; |