Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch! - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch!
Date
Msg-id 13250.943546137@sss.pgh.pa.us
Whole thread Raw
In response to Postgresql on Ultraparc/Linux , Bug report and patch!  (Silvio Macedo <smacedo@ic.ac.uk>)
Responses Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch!
List pgsql-bugs
Silvio Macedo <smacedo@ic.ac.uk> writes:
> In src/backend/utils/adt/name.c you do:
>     return (bool) strncmp(arg1->data, arg2->data, NAMEDATALEN) == 0;
> In this way you are casting strncmp to bool, and not the comparison.

Oops.  Good catch!

Wonder if there are similar mistakes elsewhere?  If so, how could we
find them?

            regards, tom lane

pgsql-bugs by date:

Previous
From: Silvio Macedo
Date:
Subject: Postgresql on Ultraparc/Linux , Bug report and patch!
Next
From: Bruce Momjian
Date:
Subject: Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch!