Skip to content

Commit 7acb119

Browse files
committed
Fix verts allocation error
1 parent 27a686f commit 7acb119

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mcstas-comps/union/Union_mesh.comp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,9 @@ if (mask_string &&
932932
int n_verts = 0;
933933
int n_faces = 0;
934934
int n_edges = 0;
935-
Coords* verts = coords_set(0,0,0);
935+
Coords* verts;
936+
Coords tmp_vert = coords_set(0,0,0);
937+
verts = &tmp_vert; // This tmp vert is just for linter play...
936938
int** faces;
937939
int unique_index = 0;
938940

0 commit comments

Comments
 (0)