소스 검색

debug/traces: add missing check if trace.html file is NULL

Samuel Pitoiset 9 년 전
부모
커밋
ab194bd4d7
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/debug/traces/starpu_fxt.c

+ 3 - 1
src/debug/traces/starpu_fxt.c

@@ -2850,9 +2850,11 @@ static
 void _starpu_fxt_anim_file_close(void)
 {
 	//_starpu_fxt_component_dump(stderr);
-	_starpu_fxt_component_finish(anim_file);
 	if (anim_file)
+	{
+		_starpu_fxt_component_finish(anim_file);
 		fclose(anim_file);
+	}
 }
 
 static