[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Patch for Bug#120386: lilo misconfigured

On Sat, Feb 02, 2002 at 01:02:22AM +0100, Michael Tiedtke wrote:
> This solves the bug, but could someone please explain me why it
> doesn't work in the original code?

Sure.  The parentheses are wrong.  The equality test has higher
precedence than the assignment, so it assigns the comparison
result to res.  The assignment needs to be parenthesized so that
it happens before the equality test, which is what I committed.

Many thanks for finding this.


Attachment: pgpeXIzBWYbiY.pgp
Description: PGP signature

Reply to: