Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Silvio Macedo <smacedo(at)ic(dot)ac(dot)uk>
Cc: bugs(at)postgreSQL(dot)org
Subject: Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch!
Date: 1999-11-25 16:08:57
Message-ID: 13250.943546137@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Silvio Macedo <smacedo(at)ic(dot)ac(dot)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 1999-11-25 18:45:34 Re: [BUGS] Postgresql on Ultraparc/Linux , Bug report and patch!
Previous Message Silvio Macedo 1999-11-25 15:34:16 Postgresql on Ultraparc/Linux , Bug report and patch!