io: fix maybe-uninitialized warning in test (-O2)
[ccan] / ccan / time / test / run-check.c
index 3c2e282fd4b4b40e47962066b6c45d6ef018ffc7..11bcc57642b911ca90f00c177809293dc12f3256 100644 (file)
@@ -156,7 +156,8 @@ int main(void)
        ok1(t3.ts.tv_sec == 2);
        ok1(t3.ts.tv_nsec == 147483648);
 
-       pipe(fds);
+       if (pipe(fds) != 0)
+               exit(1);
 
        fflush(stdout);
        switch (fork()) {