summaryrefslogtreecommitdiff
path: root/flower/dataf.cc
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@xs4all.nl>1996-11-01 17:48:30 +0100
committerHan-Wen Nienhuys <hanwen@xs4all.nl>1996-11-01 17:48:30 +0100
commit74e0f769a23454f038d20270463c734a9c22f5f9 (patch)
tree5c6dfd530af24e22b8154bf1c6bc7a787d5f3b25 /flower/dataf.cc
parent3daac955f29e408aa2aa271a883195ddc54633f4 (diff)
release: 0.0.4
Diffstat (limited to 'flower/dataf.cc')
-rw-r--r--flower/dataf.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/flower/dataf.cc b/flower/dataf.cc
index e53c716d8b..d050e278c5 100644
--- a/flower/dataf.cc
+++ b/flower/dataf.cc
@@ -110,16 +110,14 @@ String Data_file::get_line()
void
Data_file::gobble_leading_white()
{
- char c;
-
// eat blank lines.
- while (!eof())
- {
- c = data_get();
- if (!isspace(c))
+ while (!eof()) {
+ char c = data_get();
+ if (!isspace(c)) {
+ data_unget(c);
break;
}
- data_unget(c);
+ }
}