mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-24 17:17:51 -05:00
parent
9e718a1f57
commit
04607b5350
@ -977,9 +977,10 @@ static void repl(void) {
|
|||||||
} else {
|
} else {
|
||||||
long long start_time = mstime(), elapsed;
|
long long start_time = mstime(), elapsed;
|
||||||
int repeat, skipargs = 0;
|
int repeat, skipargs = 0;
|
||||||
|
char *endptr;
|
||||||
|
|
||||||
repeat = atoi(argv[0]);
|
repeat = strtol(argv[0], &endptr, 10);
|
||||||
if (argc > 1 && repeat) {
|
if (argc > 1 && *endptr == '\0' && repeat) {
|
||||||
skipargs = 1;
|
skipargs = 1;
|
||||||
} else {
|
} else {
|
||||||
repeat = 1;
|
repeat = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user