gawk

[old] Sed-like interface to the Gopher protocol
Log | Files | Refs | LICENSE

commit 8ecbb70ebe5c8d7bda3f54227f55b1b48afaefb0
parent 56f2b340f9b754ab467e715544635601ec0e7a4d
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Tue,  5 Jan 2021 19:24:13 -0800

Fix undefined variable error

I did not notice this error in the slew of warnings and thought it
was working because the previously compiled program was still there.

Diffstat:
Mmain.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -228,7 +228,7 @@ gph_recvto(int sock, char const *const path, int bin) if (bin) status = recvbin(sock, fp); else status = recvtxt(sock, fp); - if (wfclose(output) || status) + if (wfclose(fp) || status) return 1; return 0; }