diff options
author | Josh Gao <jmgao@google.com> | 2016-08-10 16:59:40 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-08-10 16:59:40 -0700 |
commit | c8e11434829d7d0ee161b76098b3a23794655987 (patch) | |
tree | e2200b470d493bea940bb88f29909e8d98324e15 /alloc-stress | |
parent | 8cd939bd7af74097363915a966d1e521b44a0faf (diff) | |
download | extras-c8e11434829d7d0ee161b76098b3a23794655987.tar.gz |
alloc-stress: use nullptr for execl sentinel.
Passing 0 as a sentinel for execl is incorrect, use nullptr instead.
Bug: http://b/30793878
Change-Id: Ib05c9b509823442ef7c2174a2086b97c32df387b
Diffstat (limited to 'alloc-stress')
-rw-r--r-- | alloc-stress/alloc-stress.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alloc-stress/alloc-stress.cpp b/alloc-stress/alloc-stress.cpp index 2fc3592a..7473ea24 100644 --- a/alloc-stress/alloc-stress.cpp +++ b/alloc-stress/alloc-stress.cpp @@ -109,7 +109,7 @@ void createProcess(Pipe pipe, const char *exName, const char *arg) snprintf(readFdStr, sizeof(readFdStr), "%d", pipe.getReadFd()); snprintf(writeFdStr, sizeof(writeFdStr), "%d", pipe.getWriteFd()); - execl(exName, exName, "--worker", arg, readFdStr, writeFdStr, 0); + execl(exName, exName, "--worker", arg, readFdStr, writeFdStr, nullptr); ASSERT_TRUE(0); } // parent process |