Re: [PATCH][BUG FIX] Uninitialized variable parsed

2019-11-22 Thread Mark Dilger
On 11/22/19 8:50 AM, Ranier Vilela wrote: Hi, Typo mystake? Memset only fill a pointer size, not the size of struct. Hello Ranier, I think you may be misunderstanding how sizeof(*parsed) works in the attached code. Try compiling and running: #include typedef struct mystruct {

[PATCH][BUG FIX] Uninitialized variable parsed

2019-11-22 Thread Ranier Vilela
Hi, Typo mystake? Memset only fill a pointer size, not the size of struct. Best regards. Ranier Vilela --- \dll\postgresql-12.0\a\backend\access\rmgrdesc\xactdesc.c Mon Sep 30 17:06:55 2019 +++ xactdesc.c Fri Nov 22 13:40:13 2019 @@ -35,7 +35,7 @@ { char *data = ((char *) xlrec