[PATCH xorg-gtest] process: document that va_args for Start() must end with zero-length string

Peter Hutterer peter.hutterer at who-t.net
Mon Aug 13 18:16:58 PDT 2012


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 include/xorg/gtest/xorg-gtest-process.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/xorg/gtest/xorg-gtest-process.h b/include/xorg/gtest/xorg-gtest-process.h
index 69b3b34..8cf60e3 100644
--- a/include/xorg/gtest/xorg-gtest-process.h
+++ b/include/xorg/gtest/xorg-gtest-process.h
@@ -123,7 +123,8 @@ class Process {
    * See 'man execvp' for further information on the variadic argument list.
    *
    * @param program The program to start.
-   * @param args Variadic list of arguments passed to the program.
+   * @param args Variadic list of arguments passed to the program. This list
+   * must end in a zero-length string ("", not NULL).
    *
    * @throws std::runtime_error on failure.
    *
@@ -135,7 +136,8 @@ class Process {
   /**
    * Starts a program as a child process.
    *
-   * Takes a variadic list of arguments passed to the program.
+   * Takes a variadic list of arguments passed to the program. This list
+   * must end in a zero-length string ("", not NULL).
    * See 'man execvp' for further information on the variadic argument list.
    *
    * @param program The program to start.
-- 
1.7.11.2



More information about the xorg-devel mailing list