diff options
-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; } |