1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

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
This commit is contained in:
Volker Lendecke 2011-02-14 20:56:09 +01:00 committed by Volker Lendecke
parent 0a05a364f3
commit 64c63a3e1c

View File

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