diff options
author | Michi Henning <michi@zeroc.com> | 2005-06-20 12:01:40 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-06-20 12:01:40 +0000 |
commit | 3b16b67dda6dffff67bf1989a540167e5ec6e9cc (patch) | |
tree | 66b37f6ac1a786790a0f95007125dbeb68ff72f0 /cpp/src/IceUtil/InputUtil.cpp | |
parent | Fixed linux comp (diff) | |
download | ice-3b16b67dda6dffff67bf1989a540167e5ec6e9cc.tar.bz2 ice-3b16b67dda6dffff67bf1989a540167e5ec6e9cc.tar.xz ice-3b16b67dda6dffff67bf1989a540167e5ec6e9cc.zip |
Fixed bug in strToInt64 that would result in parsing failure for parsing
"0".
Diffstat (limited to 'cpp/src/IceUtil/InputUtil.cpp')
-rw-r--r-- | cpp/src/IceUtil/InputUtil.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/InputUtil.cpp b/cpp/src/IceUtil/InputUtil.cpp index a141cdef965..b6fc2ce7cc2 100644 --- a/cpp/src/IceUtil/InputUtil.cpp +++ b/cpp/src/IceUtil/InputUtil.cpp @@ -102,6 +102,10 @@ strToInt64Impl(const char* s, char** endptr, int base) // if(*s == '\0') { + if(endptr) + { + *endptr = const_cast<char*>(s); + } return 0; } |