mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Merge pull request #969 from serphen/unstable
Fix error "repl-backlog-size must be 1 or greater"
This commit is contained in:
commit
b26bb768bc
@ -240,7 +240,7 @@ void loadServerConfigFromString(char *config) {
|
||||
err = "argument must be 'yes' or 'no'"; goto loaderr;
|
||||
}
|
||||
} else if (!strcasecmp(argv[0],"repl-backlog-size") && argc == 2) {
|
||||
long long size = strtoll(argv[0],NULL,10);
|
||||
long long size = strtoll(argv[1],NULL,10);
|
||||
if (size <= 0) {
|
||||
err = "repl-backlog-size must be 1 or greater.";
|
||||
goto loaderr;
|
||||
|
Loading…
Reference in New Issue
Block a user