Explorar o código

port r15809 from 1.1: clear spurious string data

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
adc8a6c44f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/debug/traces/starpu_fxt.c

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

@@ -1919,7 +1919,10 @@ void _starpu_fxt_parse_new_file(char *filename_in, struct starpu_fxt_options *op
 	struct fxt_ev_64 ev;
 	while(1)
 	{
+		unsigned i;
 		int ret = fxt_next_ev(block, FXT_EV_TYPE_64, (struct fxt_ev *)&ev);
+		for (i = ev.nb_params; i < FXT_MAX_PARAMS; i++)
+			ev.param[i] = 0;
 		if (ret != FXT_EV_OK)
 		{
 			break;