git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a1f524
)
nss_wrapper: Fix some warnings
author
Volker Lendecke
<vl@sernet.de>
Fri, 9 Nov 2007 13:23:16 +0000
(14:23 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 9 Nov 2007 14:16:59 +0000
(15:16 +0100)
source/lib/nss_wrapper/nss_wrapper.c
patch
|
blob
|
history
diff --git
a/source/lib/nss_wrapper/nss_wrapper.c
b/source/lib/nss_wrapper/nss_wrapper.c
index 5bf7ebda4fe057c700a6840e22d56a393e653731..5d443facd3e7ed5402f4cb52eb9a2c7d34ef073b 100644
(file)
--- a/
source/lib/nss_wrapper/nss_wrapper.c
+++ b/
source/lib/nss_wrapper/nss_wrapper.c
@@
-239,7
+239,7
@@
static bool nwrap_parse_file(struct nwrap_cache *nwrap)
goto failed;
}
- buf = malloc(nwrap->st.st_size + 1);
+ buf =
(uint8_t *)
malloc(nwrap->st.st_size + 1);
if (!buf) {
NWRAP_ERROR(("%s: malloc failed\n",__location__));
goto failed;