From d111d100b250215516c66f0fceda76815191afa0 Mon Sep 17 00:00:00 2001 From: njn Date: Tue, 13 Sep 2005 00:46:27 +0000 Subject: Don't print the client's argv[i] if it's null, and related changes. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4629 a5019735-40e9-0310-863c-91ae7b9d1cf9 --- include/pub_tool_libcproc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/pub_tool_libcproc.h') diff --git a/include/pub_tool_libcproc.h b/include/pub_tool_libcproc.h index e8588f525..b4e008010 100644 --- a/include/pub_tool_libcproc.h +++ b/include/pub_tool_libcproc.h @@ -35,7 +35,9 @@ Command-line and environment stuff ------------------------------------------------------------------ */ -/* Client args and environment (which can be inspected with VG_(getenv)(). */ +/* Client args and environment. Note that VG_(client_argv)[] can be written + to by the client, so you should check each entry is non-NULL before + printing. VG_(client_envp) can be inspected with VG_(getenv)(). */ extern Int VG_(client_argc); extern Char** VG_(client_argv); extern Char** VG_(client_envp); -- cgit v1.2.3