From 0c579bc3e65388e22f4d4d52c6edcda71cf2cc06 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 28 Jun 2010 12:54:11 +0200 Subject: s3-net: Make sure that the data blob is initialized. Found by clang-analyzer. --- source3/utils/net_rpc_printer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/utils') 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 */ -- cgit