소스 검색

doc/doxygen/chapters/code/disk_copy.c: use setenv instead of putenv, this is more valgrind friendly

Nathalie Furmento 11 년 전
부모
커밋
e8a8200fc9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      doc/doxygen/chapters/code/disk_copy.c

+ 1 - 1
doc/doxygen/chapters/code/disk_copy.c

@@ -35,7 +35,7 @@ int main(int argc, char **argv)
 	double * A,*B,*C,*D,*E,*F;
 
 	/* limit main ram to force to push in disk */
-	putenv("STARPU_LIMIT_CPU_MEM=160");
+	setenv("STARPU_LIMIT_CPU_MEM", "160", 1);
 
 	/* Initialize StarPU with default configuration */
 	int ret = starpu_init(NULL);