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

+1
View File
@@ -189,6 +189,7 @@ static pdf_obj *check_name(fz_context *ctx, pdf_obj *fields, const char *prefix,
if (!name[0] || strchr(name, '.'))
fz_throw(ctx, FZ_ERROR_ARGUMENT, "a bad field name");
fz_var(full);
fz_var(found);
fz_try(ctx)
{
full = fz_asprintf(ctx, "%s%s", prefix, name);