Fixed gpg_home for netpgp after adding reset flag.
authorKrista Bennett <krista@pep-project.org>
Thu, 31 May 2018 08:22:20 +0200
changeset 27041d58d97aded9
parent 2703 e1ff8dbe65f1
child 2739 1353fe080162
child 2740 cd666a204266
child 2741 5953e581f6be
Fixed gpg_home for netpgp after adding reset flag.
src/pgp_netpgp.c
     1.1 --- a/src/pgp_netpgp.c	Wed May 30 18:31:23 2018 +0200
     1.2 +++ b/src/pgp_netpgp.c	Thu May 31 08:22:20 2018 +0200
     1.3 @@ -46,7 +46,12 @@
     1.4      // netpgp_setvar(&netpgp, "need userid", "1");
     1.5  
     1.6      // NetPGP shares home with GPG
     1.7 -    home = gpg_home();
     1.8 +    #if defined(WIN32) || defined(NDEBUG)
     1.9 +        home = gpg_home();
    1.10 +    #else
    1.11 +        home = gpg_home(false);
    1.12 +    #endif
    1.13 +    
    1.14      if(home){
    1.15          netpgp_set_homedir(&netpgp,(char*)home, NULL, 0);
    1.16      }else{