aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/debugger.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2010-10-15 08:52:22 +0000
committerPaul Gilbert2010-10-15 08:52:22 +0000
commit168670acb2924b64df59452a34c15888c62b4a4f (patch)
tree2a25ddabeac442ac4900819e254609b5be8f0a70 /engines/tinsel/debugger.cpp
parent764eaa554ce2633e9a927f7264ff3ca57ee5650d (diff)
downloadscummvm-rg350-168670acb2924b64df59452a34c15888c62b4a4f.tar.gz
scummvm-rg350-168670acb2924b64df59452a34c15888c62b4a4f.tar.bz2
scummvm-rg350-168670acb2924b64df59452a34c15888c62b4a4f.zip
TINSEL: Fix for #3087863 - Code analysis warnings
svn-id: r53471
Diffstat (limited to 'engines/tinsel/debugger.cpp')
-rw-r--r--engines/tinsel/debugger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tinsel/debugger.cpp b/engines/tinsel/debugger.cpp
index f422c88e94..5d8b22116d 100644
--- a/engines/tinsel/debugger.cpp
+++ b/engines/tinsel/debugger.cpp
@@ -57,7 +57,8 @@ int strToInt(const char *s) {
// Hexadecimal string
uint tmp;
- sscanf(s, "%xh", &tmp);
+ if (!sscanf(s, "%xh", &tmp))
+ tmp = 0;
return (int)tmp;
}