diff options
author | Paul Gilbert | 2010-10-15 08:52:22 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-10-15 08:52:22 +0000 |
commit | 168670acb2924b64df59452a34c15888c62b4a4f (patch) | |
tree | 2a25ddabeac442ac4900819e254609b5be8f0a70 /engines/tinsel/debugger.cpp | |
parent | 764eaa554ce2633e9a927f7264ff3ca57ee5650d (diff) | |
download | scummvm-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.cpp | 3 |
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; } |