From 036071095617a6e3957e4153db37c0765567bd3f Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Tue, 15 Jul 2003 12:12:15 +0000 Subject: Fix cut&paste bug in strdup() usage example. Found by Metze (This used to be commit 38f85593c41b5d9ea1c67beb626724b9e14a5dab) --- docs/docbook/devdoc/vfs.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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->some_string = strdup(conn->mem_ctx,"test"); + data->some_string = strdup("test"); if (!data->some_string) { DEBUG(0,("strdup() failed\n")); return -1; -- cgit