OSDN Git Service

Set memory segment to '0', just to be sure.
authorMichael Meskes <meskes@postgresql.org>
Mon, 2 Feb 2009 16:49:50 +0000 (16:49 +0000)
committerMichael Meskes <meskes@postgresql.org>
Mon, 2 Feb 2009 16:49:50 +0000 (16:49 +0000)
src/interfaces/ecpg/test/sql/binary.pgc

index a86aa28..3b2f4f6 100644 (file)
@@ -59,6 +59,7 @@ main (void)
 
   printf ("name=%s, accs=%d byte=%s\n", empl.name, empl.accs, empl.byte);
 
+  memset(empl.name, 0, 21L);
   EXEC SQL DECLARE B BINARY CURSOR FOR select name, accs, byte from empl where idnum =:empl.idnum;
   EXEC SQL OPEN B;
   EXEC SQL FETCH B INTO :empl.name,:empl.accs,:empl.byte;