Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc

Issue 122943005: [NaCl SDK] Change KernelProxy::GetCWD() to allocate path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding my name to root AUTHORS file Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « native_client_sdk/src/AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
index 672f51c30825aa1c9a8b4febf07f1047128e7b0c..e39302b03ff7a0947ff7bc96f64ffd693112070e 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
@@ -270,11 +270,6 @@ int KernelProxy::chdir(const char* path) {
char* KernelProxy::getcwd(char* buf, size_t size) {
std::string cwd = GetCWD();
- if (size <= 0) {
- errno = EINVAL;
- return NULL;
- }
-
// If size is 0, allocate as much as we need.
if (size == 0) {
size = cwd.size() + 1;
« no previous file with comments | « native_client_sdk/src/AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698