pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-odbc@postgresql.org>
Subject: Re: Code inconsistency in convert.c for guid -> string conversion
Date: Mon, 03 Mar 2014 21:44:51 +0200
Message-ID: <5314DBB3.4030200@vmware.com> (raw)
In-Reply-To: <CAB7nPqT=nDYF4_D6+X00iMbYhDYCOVQqpgfE80i_Dni3zZQnJw@mail.gmail.com>
References: <CAB7nPqT=nDYF4_D6+X00iMbYhDYCOVQqpgfE80i_Dni3zZQnJw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 03/03/2014 04:38 AM, Michael Paquier wrote:
> On another note, I found as well the following warning:
> dlg_specific.c:1491: error: the address of 'conn_settings' will always
> evaluate as 'true'

Yeah, that has bothered me for a long time, but at a quick glance I 
haven't seen a very good way to fix it. Clearly the "conn_settings == 
NULL" test is unnecessary here, but the free() call that STR_TO_NAME 
also does is not, so we can't just replace the macro with an strcpy.

Hmm, now that I look at it, we have a macro STRX_TO_NAME which is the 
same but without the NULL check. So we can just use that; that appears 
to be how it's used elsewhere too.

So, fixed.

- Heikki


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (5+ messages)  latest in thread

Message-ID: <5314DBB3.4030200@vmware.com>
Permalink:  ../5314DBB3.4030200@vmware.com/
Also on:    postgresql.org/message-id/5314DBB3.4030200@vmware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: hlinnakangas@vmware.com, michael.paquier@gmail.com
  Subject: Re: Code inconsistency in convert.c for guid -> string conversion
  In-Reply-To: <5314DBB3.4030200@vmware.com>
  References: <CAB7nPqT=nDYF4_D6+X00iMbYhDYCOVQqpgfE80i_Dni3zZQnJw@mail.gmail.com> <5314DBB3.4030200@vmware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox