summaryrefslogtreecommitdiffstats
path: root/runtime/docs/examples/argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/docs/examples/argv.c')
-rw-r--r--runtime/docs/examples/argv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/docs/examples/argv.c b/runtime/docs/examples/argv.c
index 5200c350..609ad74f 100644
--- a/runtime/docs/examples/argv.c
+++ b/runtime/docs/examples/argv.c
@@ -4,6 +4,7 @@ int inst_do_execve (char * filename, char __user *__user *argv, char __user *__u
{
struct map_node_str *ptr;
+ _stp_list_clear (arglist);
_stp_copy_argv_from_user (arglist, argv);
foreach (arglist, ptr)