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
1 parent ee4ee4d commit b5c3343
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 b5c3343

Please sign in to comment.