Skip to content

Commit

Permalink
properly preserve old passphrase when requested.
Browse files Browse the repository at this point in the history
  • Loading branch information
karlkleinpaste committed Aug 6, 2017
2 parents a65c136 + b5c3343 commit c30658c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/biblesync_glue.cc
Expand Up @@ -784,7 +784,10 @@ int biblesync_active_xmit_allowed()
*/
const char *biblesync_get_passphrase()
{
return biblesync->getPassphrase().c_str();
static string phrase;

phrase = biblesync->getPassphrase();
return phrase.c_str();
}

/******************************************************************************
Expand Down

0 comments on commit c30658c

Please sign in to comment.