diff options
author | dim <dim@FreeBSD.org> | 2015-01-07 21:08:01 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-01-07 21:08:01 +0000 |
commit | 083c980732b44eb899ce399cf182dec9b90b9a1d (patch) | |
tree | 41f38760e19d47a9e21d0f64ece2bddaaab8aaf7 /src/string.cpp | |
parent | c3e10da3dc0f616b78ccf85206fdcf4c92f8ac85 (diff) | |
download | FreeBSD-src-083c980732b44eb899ce399cf182dec9b90b9a1d.zip FreeBSD-src-083c980732b44eb899ce399cf182dec9b90b9a1d.tar.gz |
Vendor import of libc++ trunk r224926:
https://llvm.org/svn/llvm-project/libcxx/trunk@224926
Diffstat (limited to 'src/string.cpp')
-rw-r--r-- | src/string.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/string.cpp b/src/string.cpp index fde5212..febc532 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -7,8 +7,6 @@ // //===----------------------------------------------------------------------===// -#define _LIBCPP_EXTERN_TEMPLATE(...) extern template __VA_ARGS__; - #include "string" #include "cstdlib" #include "cwchar" @@ -65,7 +63,7 @@ inline V as_integer_helper(const string& func, const S& str, size_t* idx, int base, F f) { - typename S::value_type* ptr; + typename S::value_type* ptr = nullptr; const typename S::value_type* const p = str.c_str(); typename remove_reference<decltype(errno)>::type errno_save = errno; errno = 0; @@ -182,7 +180,7 @@ inline V as_float_helper(const string& func, const S& str, size_t* idx, F f ) { - typename S::value_type* ptr; + typename S::value_type* ptr = nullptr; const typename S::value_type* const p = str.c_str(); typename remove_reference<decltype(errno)>::type errno_save = errno; errno = 0; |