瀏覽代碼

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