[poppler] utils/pdfsig.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 3 23:45:53 UTC 2022
utils/pdfsig.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit da27bb857f733ac0cd2115ba90b802d5e4382bc6
Author: Albert Astals Cid <aacid at kde.org>
Date: Thu Aug 4 01:41:46 2022 +0200
pdfsig: signatureNumber doesn't need to be global anymore
diff --git a/utils/pdfsig.cc b/utils/pdfsig.cc
index 28d972c3..a4fc35f8 100644
--- a/utils/pdfsig.cc
+++ b/utils/pdfsig.cc
@@ -138,7 +138,6 @@ static bool noOCSPRevocationCheck = false;
static bool dumpSignatures = false;
static bool etsiCAdESdetached = false;
static char signatureName[256] = "";
-static int signatureNumber = 0;
static char certNickname[256] = "";
static char password[256] = "";
static char digestName[256] = "SHA256";
@@ -303,6 +302,7 @@ int main(int argc, char *argv[])
return 1;
}
+ int signatureNumber;
if (strlen(signatureName) > 0) {
signatureNumber = atoi(signatureName);
if (signatureNumber == 0) {
More information about the poppler
mailing list