git.samba.org
/
jra
/
samba
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a C++ warning
[jra/samba/.git]
/
source
/
nsswitch
/
winbind_nss_linux.c
diff --git
a/source/nsswitch/winbind_nss_linux.c
b/source/nsswitch/winbind_nss_linux.c
index b59c0021c28511d4bd80748687d086d2940fde78..c11c18759e65cb4526c6dd32c2ac24322637312a 100644
(file)
--- a/
source/nsswitch/winbind_nss_linux.c
+++ b/
source/nsswitch/winbind_nss_linux.c
@@
-147,7
+147,7
@@
static bool next_token_alloc(const char **ptr,
}
/* We started with len = 1 so we have space for the nul. */
- *pp_buff = malloc(len);
+ *pp_buff =
(char *)
malloc(len);
if (!*pp_buff) {
return false;
}