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:
parent
f69135e0e9
commit
ece99c763a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user