Fix cut&paste bug in strdup() usage example. Found by Metze
authorAlexander Bokovoy <ab@samba.org>
Tue, 15 Jul 2003 12:12:15 +0000 (12:12 +0000)
committerAlexander Bokovoy <ab@samba.org>
Tue, 15 Jul 2003 12:12:15 +0000 (12:12 +0000)
(This used to be commit 38f85593c41b5d9ea1c67beb626724b9e14a5dab)

docs/docbook/devdoc/vfs.xml

index 966db9583ad020e91a82995c961b4c9e6acc1c41..ed2afef53e41d89419a2ac29055fa55ec1387b9b 100644 (file)
@@ -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;