mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
fix: dangling string in DebugCmd::Reload (#3981)
Assigning the result of absl::AsciiStrToUpper() to a string_view dangles Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
parent
805f0203b9
commit
b7160404ed
1 changed files with 1 additions and 1 deletions
|
@ -489,7 +489,7 @@ void DebugCmd::Reload(CmdArgList args) {
|
|||
bool save = true;
|
||||
|
||||
for (size_t i = 1; i < args.size(); ++i) {
|
||||
string_view opt = absl::AsciiStrToUpper(ArgS(args, i));
|
||||
string opt = absl::AsciiStrToUpper(ArgS(args, i));
|
||||
VLOG(1) << "opt " << opt;
|
||||
|
||||
if (opt == "NOSAVE") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue