From 8bc29b6f5fff71c69987c44e3cfbb3b79b882398 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Tue, 21 Jan 2014 15:05:39 +0400 Subject: [PATCH] openbsd: fix obvious bug in uv_cpu_info `int which[]` should not be static here, as the function itself is changing it fix joyent/node#6878 --- src/unix/openbsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/openbsd.c b/src/unix/openbsd.c index 4dfcd76b..ec83a818 100644 --- a/src/unix/openbsd.c +++ b/src/unix/openbsd.c @@ -223,7 +223,7 @@ uv_err_t uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) { uint64_t info[CPUSTATES]; char model[512]; int numcpus = 1; - static int which[] = {CTL_HW,HW_MODEL,0}; + int which[] = {CTL_HW,HW_MODEL,0}; size_t size; int i; uv_cpu_info_t* cpu_info;