summaryrefslogtreecommitdiff
path: root/source3/libsmb/smb_share_modes.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-14 20:56:09 +0100
committerVolker Lendecke <vlendec@samba.org>2011-02-14 21:44:55 +0100
commit64c63a3e1ca7206cb3bb11ff6c8c206bb9a00444 (patch)
treefa801d2ac58c9493958396089c9cd5f8c505ef2b /source3/libsmb/smb_share_modes.c
parent0a05a364f3a8bb2ec89e261e372e762ab05d5e6b (diff)
downloadsamba-64c63a3e1ca7206cb3bb11ff6c8c206bb9a00444.tar.gz
s3: Fix a C++ warning
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Feb 14 21:44:55 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/libsmb/smb_share_modes.c')
-rw-r--r--source3/libsmb/smb_share_modes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smb_share_modes.c b/source3/libsmb/smb_share_modes.c
index e752f618a40..bf3250bab44 100644
--- a/source3/libsmb/smb_share_modes.c
+++ b/source3/libsmb/smb_share_modes.c
@@ -272,7 +272,7 @@ static uint32_t smb_name_hash(const char *sharepath, const char *filename, int *
uint32_t name_hash;
*err = 0;
- fullpath = malloc(sharepath_size + filename_size + 2);
+ fullpath = (char *)malloc(sharepath_size + filename_size + 2);
if (fullpath == NULL) {
*err = 1;
return 0;