diff options
-rw-r--r-- | luni/src/main/native/libcore_io_Posix.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/luni/src/main/native/libcore_io_Posix.cpp b/luni/src/main/native/libcore_io_Posix.cpp index 7f40042..0745cbc 100644 --- a/luni/src/main/native/libcore_io_Posix.cpp +++ b/luni/src/main/native/libcore_io_Posix.cpp @@ -358,11 +358,6 @@ class Passwd { public: Passwd(JNIEnv* env) : mEnv(env), mResult(NULL) { mBufferSize = sysconf(_SC_GETPW_R_SIZE_MAX); - if (mBufferSize == -1UL) { - // We're probably on bionic, where 1KiB should be enough for anyone. - // TODO: fix bionic to return 1024 like glibc. - mBufferSize = 1024; - } mBuffer.reset(new char[mBufferSize]); } |