|
From: <kar...@us...> - 2006-04-05 23:08:45
|
Revision: 1205 Author: karstenw Date: 2006-04-05 16:08:41 -0700 (Wed, 05 Apr 2006) ViewCVS: http://svn.sourceforge.net/frontierkernel/?rev=1205&view=rev Log Message: ----------- nil dereference fix Modified Paths: -------------- Frontier/trunk/Common/source/oprefcon.c Modified: Frontier/trunk/Common/source/oprefcon.c =================================================================== --- Frontier/trunk/Common/source/oprefcon.c 2006-04-05 23:07:18 UTC (rev 1204) +++ Frontier/trunk/Common/source/oprefcon.c 2006-04-05 23:08:41 UTC (rev 1205) @@ -94,9 +94,13 @@ with zeros). many callers expect this. */ - Handle hrefcon = (**hnode).hrefcon; + Handle hrefcon; long lenrefcon; - + + // kw - 2006-01-19 - after crash - was "Handle hrefcon = (**hnode).hrefcon;" + if (hnode != nil) + hrefcon = (**hnode).hrefcon; + lenrefcon = gethandlesize (hrefcon); /*handles nil*/ if (lenrefcon < lendata) /*not enough data, make sure it's all zero*/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |