aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2014-07-22 20:25:47 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2014-07-22 20:25:47 (GMT)
commit026343b6b13024c56e9273f5012076536965bd27 (patch)
treebd0bcd13fc8b2a00db3286fb49ece82a15446246
parent5f45524211c380a0e112054bd6766f2155a41d48 (diff)
downloadfluxbox-026343b6b13024c56e9273f5012076536965bd27.zip
fluxbox-026343b6b13024c56e9273f5012076536965bd27.tar.bz2
fix uninitialized variables
-rw-r--r--src/CurrentWindowCmd.cc4
-rw-r--r--src/WorkspaceCmd.cc2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc
index 0d2e12f..9c3526d 100644
--- a/src/CurrentWindowCmd.cc
+++ b/src/CurrentWindowCmd.cc
@@ -532,15 +532,13 @@ FbTk::Command<void> *ResizeCmd::parse(const string &command, const string &args,
532 return 0; 532 return 0;
533 } 533 }
534 534
535 int dx, dy; 535 int dx = 0, dy = 0;
536 bool is_relative_x = false, is_relative_y = false, ignore_x = false, ignore_y = false; 536 bool is_relative_x = false, is_relative_y = false, ignore_x = false, ignore_y = false;
537 537
538 if (command == "resizehorizontal") { 538 if (command == "resizehorizontal") {
539 parseToken(tokens[0], dx, is_relative_x, ignore_x); 539 parseToken(tokens[0], dx, is_relative_x, ignore_x);
540 dy = 0;
541 } else if (command == "resizevertical") { 540 } else if (command == "resizevertical") {
542 parseToken(tokens[0], dy, is_relative_y, ignore_y); 541 parseToken(tokens[0], dy, is_relative_y, ignore_y);
543 dx = 0;
544 } else { 542 } else {
545 if (tokens.size() < 2) { 543 if (tokens.size() < 2) {
546 return 0; 544 return 0;
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index ea4d617..2af6b2f 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -55,7 +55,7 @@ FbTk::Command<void> *WindowListCmd::parse(const string &command, const string &a
55 FbTk::Command<void> *cmd = 0; 55 FbTk::Command<void> *cmd = 0;
56 FbTk::Command<bool> *filter = 0; 56 FbTk::Command<bool> *filter = 0;
57 std::vector<string> tokens; 57 std::vector<string> tokens;
58 int opts; 58 int opts = 0;
59 string pat; 59 string pat;
60 60
61 FbTk::StringUtil::stringTokensBetween(tokens, args, pat, '{', '}'); 61 FbTk::StringUtil::stringTokensBetween(tokens, args, pat, '{', '}');