uninitialized variables in gparts_sort

Valgrind complains about uninitialized values in gparts_sort. Not entirely sure, but could it be that the line

space.c:403 gparts_sort( gparts ,ind , nr_parts , 0 , s->nr_cells-1 );

should read

space.c:403 gparts_sort( gparts ,ind , nr_gparts , 0 , s->nr_cells-1 );

? This solves the valgrind error, but I'm not sure if it affects anything else...

Assignee Loading
Time tracking Loading