Minor zstream redup command fixes

* Fix uninitialized variable in `zstream redup` command.  The
  'rdt.ddt_count' variable is uninitialized because it was
  allocated from the stack and not globally.  Initialize it.
  This was reported by gcc when compiling with debugging enabled.

    zstream_redup.c:157:16: error: 'rdt.ddt_count' may be used
    uninitialized in this function [-Werror=maybe-uninitialized]

* Remove the cmd/zstreamdump/.gitignore file.  It's no longer
  needed now that the zstreamdump command is a script.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #10192
This commit is contained in:
Brian Behlendorf
2020-04-10 21:10:09 -07:00
committed by GitHub
parent c618f87cd2
commit 8080848254
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -1 +0,0 @@
zstreamdump