Imported Upstream version 14.45.0
[platform/upstream/libzypp.git] / zypp / KeyRing.cc
index d6b8246..e0167b5 100644 (file)
@@ -577,12 +577,11 @@ namespace zypp
     MIL << "Determining key id if signature " << signature << endl;
     // HACK create a tmp keyring with no keys
     filesystem::TmpDir dir( _base_dir, "fake-keyring" );
-    std::string tmppath( dir.path().asString() );
 
     const char* argv[] =
     {
       GPG_BINARY,
-      "--homedir", tmppath.c_str(),
+      "--homedir", dir.path().asString().c_str(),
       "--no-default-keyring",
       "--quiet",
       "--no-tty",