aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.cc
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 /src/CurrentWindowCmd.cc
parent5f45524211c380a0e112054bd6766f2155a41d48 (diff)
downloadfluxbox-026343b6b13024c56e9273f5012076536965bd27.zip
fluxbox-026343b6b13024c56e9273f5012076536965bd27.tar.bz2
fix uninitialized variables
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r--src/CurrentWindowCmd.cc4
1 files changed, 1 insertions, 3 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;