[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha6-774-g58c0b41

Volker Lendecke vlendec at samba.org
Wed Feb 11 11:21:01 GMT 2009


The branch, master has been updated
       via  58c0b415efbd693fc443044f88518a975f4d2781 (commit)
      from  d520f85b09c11753ff6d709a00d253710304f9cd (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 58c0b415efbd693fc443044f88518a975f4d2781
Author: Volker Lendecke <vl at samba.org>
Date:   Wed Feb 11 12:00:19 2009 +0100

    Fix Coverity ID 519 (NEGATIVE_RETURNS)

-----------------------------------------------------------------------

Summary of changes:
 tests/ftruncate.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/tests/ftruncate.c b/tests/ftruncate.c
index 9328278..d3e5de3 100644
--- a/tests/ftruncate.c
+++ b/tests/ftruncate.c
@@ -16,6 +16,10 @@ main()
 	int *buf;
 	int fd = open(DATA,O_RDWR|O_CREAT|O_TRUNC,0666);
 
+	if (fd == -1) {
+		exit(1);
+	}
+
 	ftruncate(fd, LEN);
 
 	unlink(DATA);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list