From fd1ed79329c25563bc128de278d2e43c7979b929 Mon Sep 17 00:00:00 2001 From: emma Date: Sun, 14 Jul 2024 02:43:01 -0600 Subject: [PATCH] dj(1): return top-of-scope variable --- src/dj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dj.c b/src/dj.c index 53adb61..1dead90 100644 --- a/src/dj.c +++ b/src/dj.c @@ -282,13 +282,14 @@ int main(int argc, char *argv[]) { { /* read */ long skipping; + size_t t; /* hack to intentionally get a partial read from Io_read */ if ((skipping = MIN(io[0].seek, io[0].bs)) > 0) { io[0].bufuse = io[0].bs - (size_t)skipping; } - size_t t = io[0].bufuse; + t = io[0].bufuse; if (Io_read(&io[0])->bufuse == t && !noerror && io[0].error == 0) { Io_read(&io[0]); /* second chance */ }