zfs/cmd/zstream
Brian Behlendorf 6de3e59bdd
Fix unitialized variable in `zstream redup` command
Fix uninitialized variable in `zstream redup` command.  The compiler
may determine the 'stream_offset' variable can be uninitialized
because not all rdt_lookup() exit paths set it.  This should never
happen in practice as documented by the assert, but initialize it
regardless to resolve the warning.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #10241
Closes #10244
2020-04-23 15:54:38 -07:00
..
.gitignore Add `zstream redup` command to convert deduplicated send streams 2020-04-10 10:39:55 -07:00
Makefile.am Add `zstream redup` command to convert deduplicated send streams 2020-04-10 10:39:55 -07:00
zstream.c Add `zstream redup` command to convert deduplicated send streams 2020-04-10 10:39:55 -07:00
zstream.h Add `zstream redup` command to convert deduplicated send streams 2020-04-10 10:39:55 -07:00
zstream_dump.c Add `zstream redup` command to convert deduplicated send streams 2020-04-10 10:39:55 -07:00
zstream_redup.c Fix unitialized variable in `zstream redup` command 2020-04-23 15:54:38 -07:00