diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/signer/gnubby.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/signer/gnubby.cc b/util/signer/gnubby.cc index 478d77470f..77cd5eb2a3 100644 --- a/util/signer/gnubby.cc +++ b/util/signer/gnubby.cc @@ -294,7 +294,8 @@ void getPIN(uint8_t* out) { static std::string tokenFilename(const uint8_t* fp) { const char* home = getenv("HOME"); - if (home == NULL) getpwuid(getuid())->pw_dir; + if (home == NULL) + home = getpwuid(getuid())->pw_dir; std::string s(home); s.append("/.tmp/"); for (int i = 0; i < 32; ++i) { |