提交 7bba2cad 编写于 作者: Z zhumingjian 提交者: Enrico Giordani

[PR] Compare empty string for command line extract save.

上级 e588702d
......@@ -153,7 +153,7 @@ public:
// save [seconds] [changes]
// or
// save "" -- turns off RDB persistence
if (strcmp(argv[argIndex], "\"\"") == 0 || strcmp(argv[argIndex], "''") == 0) {
if (strcmp(argv[argIndex], "\"\"") == 0 || strcmp(argv[argIndex], "''") == 0 || strcmp(argv[argIndex], "") == 0) {
params.push_back(argv[argIndex]);
} else if (
isStringAnInt(argv[argIndex]) &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册