Skip to content

Commit 934eab7

Browse files
author
Michael Meskes
committed
Set memory segment to '0', just to be sure.
1 parent 2d3c691 commit 934eab7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/interfaces/ecpg/test/sql/binary.pgc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ main (void)
5959

6060
printf ("name=%s, accs=%d byte=%s\n", empl.name, empl.accs, empl.byte);
6161

62+
memset(empl.name, 0, 21L);
6263
EXEC SQL DECLARE B BINARY CURSOR FOR select name, accs, byte from empl where idnum =:empl.idnum;
6364
EXEC SQL OPEN B;
6465
EXEC SQL FETCH B INTO :empl.name,:empl.accs,:empl.byte;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy