fix uninitialized variables
This commit is contained in:
parent
5f45524211
commit
026343b6b1
2 changed files with 2 additions and 4 deletions
|
@ -532,15 +532,13 @@ FbTk::Command<void> *ResizeCmd::parse(const string &command, const string &args,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int dx, dy;
|
||||
int dx = 0, dy = 0;
|
||||
bool is_relative_x = false, is_relative_y = false, ignore_x = false, ignore_y = false;
|
||||
|
||||
if (command == "resizehorizontal") {
|
||||
parseToken(tokens[0], dx, is_relative_x, ignore_x);
|
||||
dy = 0;
|
||||
} else if (command == "resizevertical") {
|
||||
parseToken(tokens[0], dy, is_relative_y, ignore_y);
|
||||
dx = 0;
|
||||
} else {
|
||||
if (tokens.size() < 2) {
|
||||
return 0;
|
||||
|
|
|
@ -55,7 +55,7 @@ FbTk::Command<void> *WindowListCmd::parse(const string &command, const string &a
|
|||
FbTk::Command<void> *cmd = 0;
|
||||
FbTk::Command<bool> *filter = 0;
|
||||
std::vector<string> tokens;
|
||||
int opts;
|
||||
int opts = 0;
|
||||
string pat;
|
||||
|
||||
FbTk::StringUtil::stringTokensBetween(tokens, args, pat, '{', '}');
|
||||
|
|
Loading…
Reference in a new issue