diff options
author | Andreas Schneider <asn@samba.org> | 2010-06-28 12:54:11 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2010-06-28 12:56:13 +0200 |
commit | 0c579bc3e65388e22f4d4d52c6edcda71cf2cc06 (patch) | |
tree | 9bdd7c4b010c523322db48ffcd2cb93f92b4bb7a /source3/utils | |
parent | f8b6ac6a08138b247bb00ec1d238a56c9b2d13c7 (diff) | |
download | samba-0c579bc3e65388e22f4d4d52c6edcda71cf2cc06.tar.gz samba-0c579bc3e65388e22f4d4d52c6edcda71cf2cc06.tar.bz2 samba-0c579bc3e65388e22f4d4d52c6edcda71cf2cc06.zip |
s3-net: Make sure that the data blob is initialized.
Found by clang-analyzer.
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_printer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index f98a6239a3..b75b195f4e 100644 --- a/source3/utils/net_rpc_printer.c +++ b/source3/utils/net_rpc_printer.c @@ -2424,6 +2424,8 @@ NTSTATUS rpc_printer_migrate_settings_internals(struct net_context *c, struct regval_blob *value; DATA_BLOB blob; + ZERO_STRUCT(blob); + /* although samba replies with sane data in most cases we should try to avoid writing wrong registry data */ |