This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: funny thing in read.c


Ari Rabkin wrote:
> 
> Hi all.  I was just building Xconq ver 7.4, and CodeWarrior brought to my
> attention that on line 3116 of read.c the variable m is not being
> initialized before use.
> I checked, and sure enough, it's not.
> for reference, the line is:
> 
> 3116: (" default_tooling[m] = -1;")

Ooh, this is a real mistake, thanks for catching!  That should be
"u" not "m".  No games in the library notice right now, since they
don't use unit-defaults to set construction tooling, but the touching
of random memory is an accident waiting to happen...

Stan

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]