aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-10-19 14:22:06 +0000
committerWerner Koch <[email protected]>2006-10-19 14:22:06 +0000
commitdf52700f5c694a9cd5fa2f10b2c3633aee9343a9 (patch)
tree70a78d2e1def01b7b550767f819d74a22eb4db23 /g10/gpg.c
parentPreparing a release (diff)
downloadgnupg-df52700f5c694a9cd5fa2f10b2c3633aee9343a9.tar.gz
gnupg-df52700f5c694a9cd5fa2f10b2c3633aee9343a9.zip
Fixes
Diffstat (limited to '')
-rw-r--r--g10/gpg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 01b50550b..8d2f2bf27 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -1907,8 +1907,8 @@ main (int argc, char **argv )
#endif
/* Initialize the secure memory. */
- gcry_control (GCRYCTL_INIT_SECMEM, 32768, 0);
- got_secmem = 1; /* FIXME: gcry_control should return an indicator. */
+ if (!gcry_control (GCRYCTL_INIT_SECMEM, 32768, 0))
+ got_secmem = 1;
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
/* There should be no way to get to this spot while still carrying
setuid privs. Just in case, bomb out if we are. */