1
0
Fork 0
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:
Kostas Kyrimis 2024-10-24 12:57:16 +03:00 committed by GitHub
parent 805f0203b9
commit b7160404ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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") {