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:
parent
bb31276c3d
commit
38f85593c4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user