PDF shim: fz_var for locals set inside fz_try (gcc -Wclobbered on Linux)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-10 20:05:25 -04:00
1 parent 76b78782d5
commit 3b23a92b3c
10 files changed
+20

No files matched your search

+2
View File
@@ -155,6 +155,7 @@ void ely_close(fz_context *ctx, fz_document *doc)
int ely_needs_password(fz_context *ctx, fz_document *doc)
{
int locked = 0;
fz_var(locked);
fz_try(ctx)
locked = fz_needs_password(ctx, doc);
fz_catch(ctx)
@@ -166,6 +167,7 @@ int ely_needs_password(fz_context *ctx, fz_document *doc)
int ely_authenticate(fz_context *ctx, fz_document *doc, const char *password)
{
int access = 0;
fz_var(access);
fz_try(ctx)
access = fz_authenticate_password(ctx, doc, password);
fz_catch(ctx)