From 12e927f078c25b894635f342062c07ac23b9e1df Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 4 Sep 2005 12:25:44 +0200 Subject: Add some braces --- src/Hill.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3