mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00: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;
|
bool save = true;
|
||||||
|
|
||||||
for (size_t i = 1; i < args.size(); ++i) {
|
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;
|
VLOG(1) << "opt " << opt;
|
||||||
|
|
||||||
if (opt == "NOSAVE") {
|
if (opt == "NOSAVE") {
|
||||||
|
|
Loading…
Reference in a new issue