[aseprite] 132/308: Fix bug reading (int/bool) parameters that aren't specified in Params
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:45:01 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 38128f73461135ff069aaf47788c785983dcac78
Author: David Capello <davidcapello at gmail.com>
Date: Thu Dec 17 17:59:46 2015 -0300
Fix bug reading (int/bool) parameters that aren't specified in Params
This fix a crash using ModifySelectionCommand commands.
---
src/app/commands/params.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/commands/params.h b/src/app/commands/params.h
index 95eb717..4b75549 100644
--- a/src/app/commands/params.h
+++ b/src/app/commands/params.h
@@ -61,7 +61,7 @@ namespace app {
template<typename T>
const T get_as(const char* name) const {
std::istringstream stream(m_params[name]);
- T value;
+ T value = T();
stream >> value;
return value;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list