From: Magnus Hagander Date: Sun, 13 Mar 2016 12:11:06 +0000 (+0100) Subject: Fix order of MemSet arguments X-Git-Tag: REL9_6_BETA1~505 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1aa8b7ea0558620106e25c27d0a70ee4ac9d6a8;p=postgresql Fix order of MemSet arguments Noted by Tomas Vondra --- diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 94852877a2..5676d50122 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -374,7 +374,7 @@ LogStreamerMain(logstreamer_param *param) { StreamCtl stream; - MemSet(&stream, sizeof(stream), 0); + MemSet(&stream, 0, sizeof(stream)); stream.startpos = param->startptr; stream.timeline = param->timeline; stream.sysidentifier = param->sysidentifier;