Skip to content

Commit

Permalink
Merge pull request #181 from VirtualPlanetaryLaboratory/dev
Browse files Browse the repository at this point in the history
Actually Fixed initialization of int in for loop
  • Loading branch information
RoryBarnes authored Jun 7, 2021
2 parents 5179c23 + 8dde59f commit d0aba9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,8 @@ void ReadModules(BODY *body, CONTROL *control, FILES *files, MODULE *module,
void PrintModuleList(FILE *file, int iBitSum, int bPadString) {
int space = 0;
int nspaces = 65;
int iSpace;

if (iBitSum & ATMESC) {
if (space) {
fprintf(file, " ");
Expand Down Expand Up @@ -891,7 +893,7 @@ void PrintModuleList(FILE *file, int iBitSum, int bPadString) {
if (bPadString) {
if (space)
nspaces -= (space - 1);
for (int i = 0; i < nspaces; i++) {
for (iSpace = 0; iSpace < nspaces; iSpace++) {
printf(" ");
}
}
Expand Down

0 comments on commit d0aba9e

Please sign in to comment.