run-command documentation: fix "memset()" parameter
When initializing the struct async and struct child_process structures, the documentation suggested "clearing" the structure with '0' instead of '\0'. It is enough to use integer zero here. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Miklos Vajna committed
Jun 14, 2008 at 03:01 UTC
9e18522328dc6ba2cf49b56fa7a54c14ad4df840
1 file changed
+2
-2
Documentation/technical/api-run-command.txt
+2
-2
@@ -63,7 +63,7 @@ command to run in a sub-process.
63
64
The caller:
65
66
-1. allocates and clears (memset(&chld, '0', sizeof(chld));) a
66
+1. allocates and clears (memset(&chld, 0, sizeof(chld));) a
67
struct child_process variable;
68
2. initializes the members;
69
3. calls start_command();
@@ -136,7 +136,7 @@ to produce output that the caller reads.
136
137
The caller:
138
139
-1. allocates and clears (memset(&asy, '0', sizeof(asy));) a
139
+1. allocates and clears (memset(&asy, 0, sizeof(asy));) a
140
struct async variable;
141
2. initializes .proc and .data;
142
3. calls start_async();