diff options
author | Jeremy Allison <jra@samba.org> | 2008-12-30 18:24:39 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-12-30 18:24:39 -0800 |
commit | 9eab2bfaf1a2f07451d0d40e9dc3323b0573a143 (patch) | |
tree | ea64f10190d3561a42c6c602660a1b372cef2966 /source3/web/neg_lang.c | |
parent | a66c034c8e3da47bf492efb631a737581cc4b0d6 (diff) | |
download | samba-9eab2bfaf1a2f07451d0d40e9dc3323b0573a143.tar.gz samba-9eab2bfaf1a2f07451d0d40e9dc3323b0573a143.tar.bz2 samba-9eab2bfaf1a2f07451d0d40e9dc3323b0573a143.zip |
Fix more "ignore return value" warnings from gcc 4.3.
Jeremy
Diffstat (limited to 'source3/web/neg_lang.c')
-rw-r--r-- | source3/web/neg_lang.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/web/neg_lang.c b/source3/web/neg_lang.c index 491ca9eedd..ae33dfc4ad 100644 --- a/source3/web/neg_lang.c +++ b/source3/web/neg_lang.c @@ -32,8 +32,7 @@ int web_open(const char *fname, int flags, mode_t mode) char *lang = lang_tdb_current(); int fd; if (lang) { - asprintf(&p, "lang/%s/%s", lang, fname); - if (p) { + if (asprintf(&p, "lang/%s/%s", lang, fname) != -1) { fd = sys_open(p, flags, mode); free(p); if (fd != -1) { |