summaryrefslogtreecommitdiffstats
path: root/cmd/zstreamdump
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2020-04-10 21:10:09 -0700
committerGitHub <[email protected]>2020-04-10 21:10:09 -0700
commit808084825492721571d617e6c670dcf307ddffcd (patch)
tree8bf1dd9f6b54ab5c91457dfe132322f82e48b444 /cmd/zstreamdump
parentc618f87cd2e96438468a391246d63ba1803f35c8 (diff)
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 <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #10192
Diffstat (limited to 'cmd/zstreamdump')
-rw-r--r--cmd/zstreamdump/.gitignore1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmd/zstreamdump/.gitignore b/cmd/zstreamdump/.gitignore
deleted file mode 100644
index ca44a529e..000000000
--- a/cmd/zstreamdump/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-zstreamdump