1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix cut&paste bug in strdup() usage example. Found by Metze

This commit is contained in:
Alexander Bokovoy 0001-01-01 00:00:00 +00:00
parent bb31276c3d
commit 38f85593c4

View File

@ -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;