summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-06-28 12:54:11 +0200
committerAndreas Schneider <asn@samba.org>2010-06-28 12:56:13 +0200
commit0c579bc3e65388e22f4d4d52c6edcda71cf2cc06 (patch)
tree9bdd7c4b010c523322db48ffcd2cb93f92b4bb7a /source3/utils
parentf8b6ac6a08138b247bb00ec1d238a56c9b2d13c7 (diff)
downloadsamba-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.c2
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 */