Explorar el Código

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

Samuel Pitoiset hace 9 años
padre
commit
ab194bd4d7
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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