mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Silence valgrind warnings of uninit'd memory
This commit is contained in:
parent
7fd47cedb7
commit
ece76c067f
2 changed files with 2 additions and 0 deletions
|
|
@ -506,6 +506,7 @@ retry: /* transaction retry */
|
|||
} else {
|
||||
char gid[DB_XIDDATASIZE];
|
||||
|
||||
memset( gid, 0, sizeof(gid) );
|
||||
snprintf( gid, sizeof( gid ), "%s-%08lx-%08lx",
|
||||
bdb_uuid.bv_val, (long) op->o_connid, (long) op->o_opid );
|
||||
|
||||
|
|
|
|||
|
|
@ -960,6 +960,7 @@ retry: /* transaction retry */
|
|||
} else {
|
||||
char gid[DB_XIDDATASIZE];
|
||||
|
||||
memset( gid, 0, sizeof(gid) );
|
||||
snprintf( gid, sizeof( gid ), "%s-%08lx-%08lx",
|
||||
bdb_uuid.bv_val, (long) op->o_connid, (long) op->o_opid );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue