[mapsub has a bug (sorry folks)... the line that looks like "if (*s)" should
be "if (s)". Better fix your copies -- James]
Bill Ricker writes:
> Looks real cute once I got it to stop dumping core.
>
> if (*s)
> It runs fine if I change this to:
> if (s != NULL && *s)
>
> Moral: For transportable code,
> NEVER TEST THE POINTEE WITHOUT CHECKING FOR NULL POINTER FIRST!!!!
Oh crud! #%$@!*!@@^#$^@!
When I wrote it I tried to be verry, verrry careful to not dereference any
null pointers. That line slipped out and really should have been:
if (s)
The splat was left from earlier when I wasn't attempting to write portable
code :-(
James "I promise never again to assume that the whole world is a VAX" Perkins
_ ___
| | / _ \ James T. Perkins, [email removed], 629-1149
| |__ | |_| | Tektronix Logic Analyzers, DAS System Software, Display
|[address removed]
Killed processes never die... They just go to the big Bit Bicket in the sky.