Re: Refectoring of receivelog.c

From: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Refectoring of receivelog.c
Date: 2016-03-12 23:15:14
Message-ID: 56E4A302.90601@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 03/11/2016 11:15 AM, Magnus Hagander wrote:
>
...
>
>
> Pushed with updated comments and a named stsruct.

Pretty sure this memset call in pg_basebackup.c is incorrect, as it
passes parameters in the wrong order:

MemSet(&stream, sizeof(stream), 0);

It seems benign, because we're setting all the fields explicitly, but
gcc is nagging about it.

regards

--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris Ruprecht 2016-03-12 23:23:16 Re: [GENERAL] OS X 10.11.3, psql, bus error 10, 9.5.1
Previous Message Tom Lane 2016-03-12 22:58:11 Re: [GENERAL] OS X 10.11.3, psql, bus error 10, 9.5.1