提交 ee2f20df 编写于 作者: J Juri M. Vainonen 提交者: antirez

fixed a small bug that caused redis-cli to segfault when given single numeric...

fixed a small bug that caused redis-cli to segfault when given single numeric parameter greater that zero.
上级 0dfc5578
......@@ -694,7 +694,7 @@ static void repl() {
int repeat, skipargs = 0;
repeat = atoi(argv[0]);
if (repeat) {
if (argc > 1 && repeat) {
skipargs = 1;
} else {
repeat = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册