diff options
| author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2025-01-23 23:48:44 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-02-14 19:45:12 +0100 |
| commit | dcb2126aee2d54d1ac0f2d11133a93fa01851fcb (patch) | |
| tree | 98d9f065b6bda0c60a781e395b56a9c4ab4a613f | |
| parent | e9461c19db6d6c353b6a5355ead8dda2e9045229 (diff) | |
StartsWithGPGClearTextSignature(): don't keep un-written-to pointer to constant string in .data
| -rw-r--r-- | apt-pkg/contrib/fileutl.cc | 2 |
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; |
