aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-07-02 05:42:21 (GMT)
committerfluxgen <fluxgen>2003-07-02 05:42:21 (GMT)
commita1c84c8404dcdaa7206f1282b7470c551678a67d (patch)
tree281dd626c8ee51821a3bee134abdfa5dc1d3220b
parent3d80ba0c1aed3bb5fffc6d59d70a63931d0a365d (diff)
downloadfluxbox_pavel-a1c84c8404dcdaa7206f1282b7470c551678a67d.zip
fluxbox_pavel-a1c84c8404dcdaa7206f1282b7470c551678a67d.tar.bz2
check for last_key
-rw-r--r--src/Keys.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index f25eb4a..a0aabd5 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22//$Id: Keys.cc,v 1.34 2003/06/30 20:59:28 fluxgen Exp $ 22//$Id: Keys.cc,v 1.35 2003/07/02 05:42:21 fluxgen Exp $
23 23
24 24
25#include "Keys.hh" 25#include "Keys.hh"
@@ -189,7 +189,11 @@ bool Keys::load(const char *filename) {
189 } 189 }
190 190
191 } else { // parse command line 191 } else { // parse command line
192 192 if (last_key == 0) {
193 cerr<<"File: "<<filename<<". Error on line: "<<line<<endl;
194 cerr<<"> "<<linebuffer<<endl;
195 break;
196 }
193 197
194 const char *str = 198 const char *str =
195 FbTk::StringUtil::strcasestr(linebuffer.c_str(), 199 FbTk::StringUtil::strcasestr(linebuffer.c_str(),