AmendHub

Download (as of this amendment):

jcs

/

subtext

/

amendments

/

604

binkp: Minor safety checks


jcs made amendment 604 10 months ago
--- binkp.c Wed Oct 22 22:12:22 2025 +++ binkp.c Sat Dec 6 15:10:18 2025 @@ -157,7 +157,7 @@ binkp_poll(void) elapsed == 1 ? "" : "s"); done: - if (binkpc->error) + if (!binkpc || binkpc->error) binkp_last_poll_error = true; if (binkpc != NULL) @@ -987,7 +987,7 @@ binkp_deliver_outbox(void) CMovePBRec cmpbr = { 0 }; struct stat sb; size_t len, fsize_left; - short dir_id, error, frefnum; + short dir_id, error, frefnum = 0; char *data = NULL; fpb->ioVRefNum = 0;