diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-02 03:03:58 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-02 03:03:58 +0200 |
commit | 2e53402c9a10f07a1d8c8024c8c3a3044a48867c (patch) | |
tree | de779fb3bca4c5142c8e70de96a3029ec06aeb92 /src/Daemon/RPM.cpp | |
parent | 3f85e42d2b68547a5315e118652a43e3498aa419 (diff) | |
download | abrt-2e53402c9a10f07a1d8c8024c8c3a3044a48867c.tar.gz abrt-2e53402c9a10f07a1d8c8024c8c3a3044a48867c.tar.xz abrt-2e53402c9a10f07a1d8c8024c8c3a3044a48867c.zip |
fix map_string_string_t typedef name to map_string_t; silly optimizations
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/RPM.cpp')
-rw-r--r-- | src/Daemon/RPM.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 != "") |