{"thread":{"id":"13939","subject":"[PATCH] run-command documentation: add 4 missing slashes","startedAt":"2008-06-14T01:01:59Z","lastAt":"2008-06-14T01:01:59Z","messageCount":1,"participants":["Miklos Vajna"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"79798","messageId":"1213405319-25256-1-git-send-email-vmiklos@frugalware.org","threadId":"13939","inReplyTo":null,"subject":"[PATCH] run-command documentation: add 4 missing slashes","fromName":"Miklos Vajna","fromEmail":"vmiklos@frugalware.org","sentAt":"2008-06-14T01:01:59Z","receivedAt":"2008-06-14T01:01:59Z","isPatch":true,"sender":{"key":"vmiklos@frugalware.org","avatar":"https://gravatar.com/avatar/401c1cbbb3a5d13e650c691a2c71d6fd0b80df1a01bc74d9f1972675dd58f2bd?d=mp&s=160"},"body":"When initializing the struct async and struct child_process structures,\nthe documentation suggested \"clearing\" the structure with '0' instead of\n'\\0'.\n\nAlso asciidoc would parse '\\0' as a markup, changing it to \\'0' prevents\nthis.\n\nSigned-off-by: Miklos Vajna <vmiklos@frugalware.org>\n---\n Documentation/technical/api-run-command.txt |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/technical/api-run-command.txt b/Documentation/technical/api-run-command.txt\nindex c364a22..6591db9 100644\n--- a/Documentation/technical/api-run-command.txt\n+++ b/Documentation/technical/api-run-command.txt\n@@ -63,7 +63,7 @@ command to run in a sub-process.\n \n The caller:\n \n-1. allocates and clears (memset(&chld, '0', sizeof(chld));) a\n+1. allocates and clears (memset(&chld, \\'\\0', sizeof(chld));) a\n    struct child_process variable;\n 2. initializes the members;\n 3. calls start_command();\n@@ -136,7 +136,7 @@ to produce output that the caller reads.\n \n The caller:\n \n-1. allocates and clears (memset(&asy, '0', sizeof(asy));) a\n+1. allocates and clears (memset(&asy, \\'\\0', sizeof(asy));) a\n    struct async variable;\n 2. initializes .proc and .data;\n 3. calls start_async();\n-- \n1.5.6.rc2.dirty\n"}]}