mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
fix: actually zero initialize the struct (#1256)
I mixed up array initialization and zero initialization :) Signed-off-by: Roy Jacobson <roy@dragonflydb.io>
This commit is contained in:
parent
59ae8fcc77
commit
cc0e264ed0
1 changed files with 1 additions and 1 deletions
|
@ -543,7 +543,7 @@ OpResult<streamID> OpAdd(const OpArgs& op_args, string_view key, const AddOpts&
|
|||
streamTrimByID(stream_inst, opts.minid.val, opts.trim_approx);
|
||||
}
|
||||
} else {
|
||||
streamAddTrimArgs add_args = {0};
|
||||
streamAddTrimArgs add_args = {};
|
||||
add_args.trim_strategy = static_cast<int>(opts.trim_strategy);
|
||||
add_args.approx_trim = opts.trim_approx;
|
||||
add_args.limit = opts.limit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue