diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2009-10-02 06:37:44 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2009-10-02 06:37:44 (GMT) |
commit | 1b4596ee852eaa770064f2711a1b6445a6c4303d (patch) | |
tree | 4ab3a444f66bd82b5aae0079443d6a93326425e0 /util/fluxbox-update_configs.cc | |
parent | 261ba26d27c3a64a627b6f407e057da0d17b621c (diff) | |
download | fluxbox_pavel-1b4596ee852eaa770064f2711a1b6445a6c4303d.zip fluxbox_pavel-1b4596ee852eaa770064f2711a1b6445a6c4303d.tar.bz2 |
bugfix: stop wiping out ~/.fluxbox/keys
Diffstat (limited to 'util/fluxbox-update_configs.cc')
-rw-r--r-- | util/fluxbox-update_configs.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc index 40962da..fcb9bc2 100644 --- a/util/fluxbox-update_configs.cc +++ b/util/fluxbox-update_configs.cc | |||
@@ -489,12 +489,6 @@ string read_file(const string& filename) { | |||
489 | string linebuffer; | 489 | string linebuffer; |
490 | while (!infile.eof()) { | 490 | while (!infile.eof()) { |
491 | getline(infile, linebuffer); | 491 | getline(infile, linebuffer); |
492 | |||
493 | // check if we read something at all. if its 0, its a strange file | ||
494 | // (eg a directory) or we are at the end | ||
495 | if (infile.gcount() == 0) { | ||
496 | break; | ||
497 | } | ||
498 | whole_file += linebuffer + "\n"; | 492 | whole_file += linebuffer + "\n"; |
499 | } | 493 | } |
500 | infile.close(); | 494 | infile.close(); |