summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-03 09:43:40 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-03-03 09:43:40 +1100
commit778c473a19501c6d6a618252bf7b7dcfbac216b5 (patch)
tree478cac0360b02c4ee75ace4a070b70e4d2ba7213
parentfd1f2cdb22034410ca82021555bd2eb9b4604fbe (diff)
fix(png): Removed last_error field even though the png_ctx is NULL
-rw-r--r--src/format/image/png.c2
1 files changed, 1 insertions, 1 deletions
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;
}