Skip to content

Commit

Permalink
Initialise sflags for stnZ from delta star
Browse files Browse the repository at this point in the history
Avoids use of an uninitialised value.
  • Loading branch information
ojwb committed Dec 23, 2024
1 parent 4051c92 commit beca3dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ remove_subnets(void)
nameZ->stn = stnZ;
nameZ->up = NULL;
nameZ->min_export = nameZ->max_export = 0;
nameZ->sflags = 0;
unfix(stnZ);
add_stn_to_list(&stnlist, stnZ);
legAZ->l.to = stnZ;
Expand Down

0 comments on commit beca3dd

Please sign in to comment.