From a1aa8b7ea0558620106e25c27d0a70ee4ac9d6a8 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sun, 13 Mar 2016 13:11:06 +0100 Subject: [PATCH] Fix order of MemSet arguments Noted by Tomas Vondra --- src/bin/pg_basebackup/pg_basebackup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0