From 4115f92ff653f251e37234421ad5730e1b237121 Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Sun, 3 Sep 2017 17:43:02 +0200 Subject: [PATCH] libc: make times return -1 on io error --- sys/src/lib/c/9sys/times.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/lib/c/9sys/times.c b/sys/src/lib/c/9sys/times.c index a04308e..527f93c 100644 --- a/sys/src/lib/c/9sys/times.c +++ b/sys/src/lib/c/9sys/times.c @@ -35,7 +35,7 @@ jehanne_times(int32_t *t) char b[200], *p; static int f = -1; int i, retries; - uint32_t r; + uint32_t r = -1; jehanne_memset(b, 0, sizeof(b)); for(retries = 0; retries < 100; retries++){