linux: add braces to multi-statement if

PR-URL: https://github.com/libuv/libuv/pull/750
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
Kári Tristan Helgason 2016-03-05 08:54:43 +01:00 committed by Ben Noordhuis
parent 4c765d72a6
commit 80d9d86e0f

View File

@ -602,9 +602,10 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {
return -ENOMEM;
err = read_models(numcpus, ci);
if (err == 0)
if (err == 0) {
rewind(statfile_fp);
err = read_times(statfile_fp, numcpus, ci);
}
if (fclose(statfile_fp))
if (errno != EINTR && errno != EINPROGRESS)