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

s3: Fix a C++ warning

This commit is contained in:
Volker Lendecke 2010-02-13 13:02:15 +01:00
parent f69135e0e9
commit ece99c763a

View File

@ -61,7 +61,7 @@ bool set_conn_connectpath(connection_struct *conn, const char *connectpath)
}
/* Allocate for strlen + '\0' + possible leading '/' */
destname = SMB_MALLOC(strlen(connectpath) + 2);
destname = (char *)SMB_MALLOC(strlen(connectpath) + 2);
if (!destname) {
return false;
}