[softwarelist] zip module zero page bug fix

  • From: David Pilling <flist@xxxxxxxxxxxxxxxxxxx>
  • To: davidpilling@xxxxxxxxxxxxx
  • Date: Thu, 6 Aug 2015 15:35:23 +0100

Hi,

I had a very helpful zeropain/zeropage RISC OS report on the SparkFS zip module from Willi Theiß.

As a result I've fixed the problem and produced another zip module candidate, which you can get from here:

www.davidpilling.com/zip143c3.zip

I found the reported bug, and noticed a pattern which let me find another bug.

Often in RISC OS errors are reported as pointers, and one usually does:

if(err) {handle error}

what I was doing was

if(err->errnum==SomeErrorNumber) {handle error}

which should be

if(err && err->errnum...

It is easy to search for this pattern.


--
David Pilling
www.davidpilling.com

--
David Pilling
www.davidpilling.com
To unsubscribe or subscribe goto: //www.freelists.org/list/davidpilling

Other related posts: