libc: make times return -1 on io error

This commit is contained in:
Giacomo Tesio 2017-09-03 17:43:02 +02:00
parent a97830e493
commit 4115f92ff6
1 changed files with 1 additions and 1 deletions

View File

@ -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++){