summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-08 06:32:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:05 -0500
commitf635dcb5f3f4d65b45126a857ccd150ec0f5bed6 (patch)
treed04ece6416e0c138d831889a81187b3907e8757e /source3/param
parentc7c3b98d4b7b28ffcfa6ab26128f769555d5c03a (diff)
downloadsamba-f635dcb5f3f4d65b45126a857ccd150ec0f5bed6.tar.gz
samba-f635dcb5f3f4d65b45126a857ccd150ec0f5bed6.tar.bz2
samba-f635dcb5f3f4d65b45126a857ccd150ec0f5bed6.zip
r14018: Coverity error CID #27. Missing return -1 on error condition.
Jeremy. (This used to be commit 94e869d9c6d1a1c1df0d072530bf8d4452bd10bb)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 8b79ec37d7..2f100b303c 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4534,6 +4534,7 @@ static int process_usershare_file(const char *dir_name, const char *file_name, i
if (lines == NULL) {
DEBUG(0,("process_usershare_file: loading file %s owned by %u failed.\n",
fname, (unsigned int)sbuf.st_uid ));
+ return -1;
}
/* Should we allow printers to be shared... ? */