summaryrefslogtreecommitdiff
path: root/alloc-stress
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2016-08-11 01:19:23 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-08-11 01:19:24 +0000
commit3609371c949ec3c31fc88bb6a2231774fdeb25c1 (patch)
treea53a1ca025dc5667a9766894c96dfdf56f091d24 /alloc-stress
parentbe52e2bb05032c98cd4c7ae57e71cf6de9ab4560 (diff)
parentc8e11434829d7d0ee161b76098b3a23794655987 (diff)
downloadextras-3609371c949ec3c31fc88bb6a2231774fdeb25c1.tar.gz
Merge "alloc-stress: use nullptr for execl sentinel."
Diffstat (limited to 'alloc-stress')
-rw-r--r--alloc-stress/alloc-stress.cpp2
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