git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix some warnings
[vlendec/samba-autobuild/.git]
/
source3
/
param
/
loadparm.c
diff --git
a/source3/param/loadparm.c
b/source3/param/loadparm.c
index 4d067af5a50e770048a207ca00ce554b9dc59d25..86446d5b75f73c91759aaeeb0d90155a44073c24 100644
(file)
--- a/
source3/param/loadparm.c
+++ b/
source3/param/loadparm.c
@@
-2251,8
+2251,7
@@
static param_opt_struct *get_parametrics(int snum, const char *type, const char
data = ServicePtrs[snum]->param_opt;
}
- asprintf(¶m_key, "%s:%s", type, option);
- if (!param_key) {
+ if (asprintf(¶m_key, "%s:%s", type, option) == -1) {
DEBUG(0,("asprintf failed!\n"));
return NULL;
}