summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2025-01-23 23:48:44 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2025-02-14 19:45:12 +0100
commitdcb2126aee2d54d1ac0f2d11133a93fa01851fcb (patch)
tree98d9f065b6bda0c60a781e395b56a9c4ab4a613f /apt-pkg
parente9461c19db6d6c353b6a5355ead8dda2e9045229 (diff)
StartsWithGPGClearTextSignature(): don't keep un-written-to pointer to constant string in .data
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/fileutl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index c74632218..3626f00ec 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -1010,7 +1010,7 @@ bool StartsWithGPGClearTextSignature(string const &FileName)
}
_strrstrip(lineptr);
- static const char* SIGMSG = "-----BEGIN PGP SIGNED MESSAGE-----";
+ const char* SIGMSG = "-----BEGIN PGP SIGNED MESSAGE-----";
if (result == -1 || strcmp(lineptr, SIGMSG) != 0)
return false;
return true;