[NUT-devel] [nut]: r545 - src/trunk/nututils/nutparse.c

Clemens Ladisch cladisch at fastmail.net
Mon Feb 4 11:31:37 CET 2008


Rich Felker wrote:
> On Sat, Feb 02, 2008 at 01:07:54PM +0100, ods15 wrote:
> >> Log:
> >> Warning fixes to nutparse.c
> >>
> >> -	} else if (class = 1) {
> >> +	} else if (class == 1) {
>
> THIS IS NOT A WARNING FIX BUT A FUNCTIONAL CHANGE! (Most likely a
> bugfix but either that or a new bug :)

Sorry; I had this bug already fixed in my local tree but forgot to
apply it.

> Some of the 0 initializations looked suspicious too. Why are those
> variables never initialized correctly before later use??

These variables are only used in those cases where they have been set.


Regards,
Clemens



More information about the NUT-devel mailing list