Set memory segment to '0', just to be sure.

This commit is contained in:
Michael Meskes 2009-02-02 16:49:50 +00:00
parent 2d3c691146
commit 934eab7cd5
1 changed files with 1 additions and 0 deletions

View 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;