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:
parent
4c765d72a6
commit
80d9d86e0f
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user