mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r14247: Fix Coverity bug # 136
This commit is contained in:
parent
ebc21336d8
commit
1b247ff2ed
@ -525,11 +525,13 @@ static int regdb_pack_values(REGVAL_CTR *values, char *buf, int buflen)
|
||||
int len = 0;
|
||||
int i;
|
||||
REGISTRY_VALUE *val;
|
||||
int num_values = regval_ctr_numvals( values );
|
||||
int num_values;
|
||||
|
||||
if ( !values )
|
||||
return 0;
|
||||
|
||||
num_values = regval_ctr_numvals( values );
|
||||
|
||||
/* pack the number of values first */
|
||||
|
||||
len += tdb_pack( buf+len, buflen-len, "d", num_values );
|
||||
|
Loading…
Reference in New Issue
Block a user