From 2e53402c9a10f07a1d8c8024c8c3a3044a48867c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 2 Sep 2009 03:03:58 +0200 Subject: fix map_string_string_t typedef name to map_string_t; silly optimizations Signed-off-by: Denys Vlasenko --- src/Daemon/RPM.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Daemon/RPM.cpp') diff --git a/src/Daemon/RPM.cpp b/src/Daemon/RPM.cpp index f5377bc..87d2516 100644 --- a/src/Daemon/RPM.cpp +++ b/src/Daemon/RPM.cpp @@ -57,9 +57,10 @@ bool CRPM::CheckFingerprint(const std::string& pPackage) std::string PGPSignatureText = pgpsig; free(pgpsig); - if (PGPSignatureText.find(" Key ID ") != std::string::npos) + size_t Key_ID_pos = PGPSignatureText.find(" Key ID "); + if (Key_ID_pos != std::string::npos) { - std::string headerFingerprint = PGPSignatureText.substr(PGPSignatureText.find(" Key ID ") + sizeof (" Key ID ") - 1); + std::string headerFingerprint = PGPSignatureText.substr(Key_ID_pos + sizeof (" Key ID ") - 1); rpmtdFree(td); if (headerFingerprint != "") -- cgit