git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d520f85
)
Fix Coverity ID 519 (NEGATIVE_RETURNS)
author
Volker Lendecke
<vl@samba.org>
Wed, 11 Feb 2009 11:00:19 +0000
(12:00 +0100)
committer
Volker Lendecke
<vl@samba.org>
Wed, 11 Feb 2009 11:20:42 +0000
(12:20 +0100)
tests/ftruncate.c
patch
|
blob
|
history
diff --git
a/tests/ftruncate.c
b/tests/ftruncate.c
index 93282782eedb15207ce51e42baaa377c9fc2961a..d3e5de3afbe695baaaecb1f0c214401d450ccf78 100644
(file)
--- 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);