Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKYnQ-0006wJ-PP for pgsql-odbc@arkaria.postgresql.org; Mon, 03 Mar 2014 19:45:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WKYnQ-0000JV-1L for pgsql-odbc@arkaria.postgresql.org; Mon, 03 Mar 2014 19:45:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKYnO-0000JG-7D for pgsql-odbc@postgresql.org; Mon, 03 Mar 2014 19:45:02 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKYnJ-0006fx-Td for pgsql-odbc@postgresql.org; Mon, 03 Mar 2014 19:45:00 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id ABF1228411; Mon, 3 Mar 2014 11:44:54 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id A8653401A6; Mon, 3 Mar 2014 11:44:54 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 82F77120033; Mon, 3 Mar 2014 11:44:52 -0800 (PST) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Mon, 3 Mar 2014 11:44:51 -0800 (PST) Message-ID: <5314DBB3.4030200@vmware.com> Date: Mon, 03 Mar 2014 21:44:51 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Michael Paquier CC: PostgreSQL mailing lists Subject: Re: Code inconsistency in convert.c for guid -> string conversion References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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