dav/main.c

changeset 510
d6e801f97e7a
parent 509
0576dd6409f3
child 511
59a216f8d4e8
--- a/dav/main.c	Sun Feb 24 15:06:25 2019 +0100
+++ b/dav/main.c	Sun Feb 24 17:35:18 2019 +0100
@@ -1999,7 +1999,7 @@
             timeout = -1;
         } else {
             uint64_t i;
-            if(util_strtoint(timeoutstr)) {
+            if(util_strtoint(timeoutstr, &i)) {
                 timeout = (time_t)i;
             } else {
                 fprintf(stderr, "Error: -T option has invalid value\n");

mercurial