diff options
author | Volker Lendecke <vl@samba.org> | 2008-02-25 15:24:49 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-02-25 16:09:26 +0100 |
commit | 317639287886181edf08ccecad1b324e4cc55d0b (patch) | |
tree | 8388cbc402ff784babdfcd892daa87090497a8a1 /source3/param | |
parent | cd95385207ff2a9c27031dcff19b7b74df3a626f (diff) | |
download | samba-317639287886181edf08ccecad1b324e4cc55d0b.tar.gz samba-317639287886181edf08ccecad1b324e4cc55d0b.tar.bz2 samba-317639287886181edf08ccecad1b324e4cc55d0b.zip |
Fix some warnings
warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
(This used to be commit ad37b7b0aee265a3e4d8b7552610f4b9a105434d)
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 4d067af5a5..86446d5b75 100644 --- 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; } |