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:
parent
0a05a364f3
commit
64c63a3e1c
@ -272,7 +272,7 @@ static uint32_t smb_name_hash(const char *sharepath, const char *filename, int *
|
|||||||
uint32_t name_hash;
|
uint32_t name_hash;
|
||||||
|
|
||||||
*err = 0;
|
*err = 0;
|
||||||
fullpath = malloc(sharepath_size + filename_size + 2);
|
fullpath = (char *)malloc(sharepath_size + filename_size + 2);
|
||||||
if (fullpath == NULL) {
|
if (fullpath == NULL) {
|
||||||
*err = 1;
|
*err = 1;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user