summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-07-15 12:12:15 +0000
committerAlexander Bokovoy <ab@samba.org>2003-07-15 12:12:15 +0000
commit036071095617a6e3957e4153db37c0765567bd3f (patch)
tree6a5f6a8c2ddc7195792383b262b94a6700124bf0 /docs
parent5c327041d619ca1bf3fcf917427eff24920e4721 (diff)
downloadsamba-036071095617a6e3957e4153db37c0765567bd3f.tar.gz
samba-036071095617a6e3957e4153db37c0765567bd3f.tar.bz2
samba-036071095617a6e3957e4153db37c0765567bd3f.zip
Fix cut&paste bug in strdup() usage example. Found by Metze
(This used to be commit 38f85593c41b5d9ea1c67beb626724b9e14a5dab)
Diffstat (limited to 'docs')
-rw-r--r--docs/docbook/devdoc/vfs.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/docbook/devdoc/vfs.xml b/docs/docbook/devdoc/vfs.xml
index 966db9583a..ed2afef53e 100644
--- a/docs/docbook/devdoc/vfs.xml
+++ b/docs/docbook/devdoc/vfs.xml
@@ -671,7 +671,7 @@ static int example_connect(vfs_handle_struct *handle,
}
/* init out private data */
- data-&gt;some_string = strdup(conn-&gt;mem_ctx,&quot;test&quot;);
+ data-&gt;some_string = strdup(&quot;test&quot;);
if (!data-&gt;some_string) {
DEBUG(0,(&quot;strdup() failed\n&quot;));
return -1;