From 778c473a19501c6d6a618252bf7b7dcfbac216b5 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Tue, 3 Mar 2026 09:43:40 +1100 Subject: fix(png): Removed last_error field even though the png_ctx is NULL --- src/format/image/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/format/image/png.c') diff --git a/src/format/image/png.c b/src/format/image/png.c index fa0584a..11b90c3 100644 --- a/src/format/image/png.c +++ b/src/format/image/png.c @@ -39,7 +39,7 @@ ff_result ff_open_png(ff_stream *stream, ff_png_ctx **out_ctx, ff_flag require_v ff_png_ctx *ctx = malloc(sizeof(ff_png_ctx)); if (!ctx) { - ctx->last_error = FF_RESULT_ERROR_MEMORY_ALLOCATION; + // lol, i actually set the last_error field here. now its just this comment. im so frickin dumb bruh return FF_RESULT_ERROR_MEMORY_ALLOCATION; } -- cgit v1.2.3