diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-09-04 12:25:44 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-09-04 12:25:44 +0200 |
commit | 12e927f078c25b894635f342062c07ac23b9e1df (patch) | |
tree | c4d9e808210ce37bb335e259f3fb3c542124629f /src | |
parent | 6dce9b9515265d938a672a0817fd293015c77551 (diff) |
Add some braces
Diffstat (limited to 'src')
-rw-r--r-- | src/Hill.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Hill.cxx b/src/Hill.cxx index 7acf77d..59cdfca 100644 --- a/src/Hill.cxx +++ b/src/Hill.cxx @@ -95,9 +95,11 @@ Hills::load(const char *file) { while (fgets(buf, sizeof(buf), fp)) { bp = buf; memset(vals, 0, sizeof(vals)); - for (ap = vals; (*ap = strsep(&bp, ",")) != NULL;) - if (++ap >= &vals[10]) + for (ap = vals; (*ap = strsep(&bp, ",")) != NULL;) { + if (++ap >= &vals[10]) { break; + } + } if (vals[1] && vals[3] && vals[4] && vals[5]) { phi = atof(vals[3]) * deg2rad; |