Skip to content

Commit

Permalink
initialization inside loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Feb 13, 2025
1 parent 618b52d commit 5fa7c16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misc/m.nviz.image/vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ int vlines_set_attrb(const struct GParams *params)
*/
int vpoints_set_attrb(const struct GParams *params)
{
int i, layer = 0, have_colors, with_z = 0;
int i, have_colors;
int *site_list, nsites;
int marker, color, width;
float size;
Expand All @@ -187,6 +187,7 @@ int vpoints_set_attrb(const struct GParams *params)
site_list = GP_get_site_list(&nsites);

for (i = 0; i < nsites; i++) {
int layer = -1, with_z = 0;
check_map(params, i, FALSE, &layer, &with_z);

color = Nviz_color_from_str(params->vpoint_color->answers[i]);
Expand Down

0 comments on commit 5fa7c16

Please sign in to comment.