git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a05a36
)
s3: Fix a C++ warning
author
Volker Lendecke
<vl@samba.org>
Mon, 14 Feb 2011 19:56:09 +0000
(20:56 +0100)
committer
Volker Lendecke
<vlendec@samba.org>
Mon, 14 Feb 2011 20:44:55 +0000
(21:44 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Feb 14 21:44:55 CET 2011 on sn-devel-104
source3/libsmb/smb_share_modes.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/smb_share_modes.c
b/source3/libsmb/smb_share_modes.c
index e752f618a40aff5ad2bc88a8981a41252c3bd63a..bf3250bab4420870558fb098aa71d58fa3eff426 100644
(file)
--- 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;