summaryrefslogtreecommitdiff
path: root/source3/libgpo
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-03 23:05:11 +0200
committerVolker Lendecke <vl@samba.org>2009-05-03 23:06:01 +0200
commit9271dc5f7eb3e18021e27f334837d28b921db8e5 (patch)
treea5c7f532786c35e48c5b711ce18a7f7e7ddfd5e2 /source3/libgpo
parent2fe79f75847d43a626f64229366a44373a11e7b3 (diff)
downloadsamba-9271dc5f7eb3e18021e27f334837d28b921db8e5.tar.gz
samba-9271dc5f7eb3e18021e27f334837d28b921db8e5.tar.bz2
samba-9271dc5f7eb3e18021e27f334837d28b921db8e5.zip
Fix Coverity ID 913 (NEGATIVE_RETURNS) -- gd, please check!
Diffstat (limited to 'source3/libgpo')
-rw-r--r--source3/libgpo/gpo_filesync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libgpo/gpo_filesync.c b/source3/libgpo/gpo_filesync.c
index d4b623ad6e..85323c12c9 100644
--- a/source3/libgpo/gpo_filesync.c
+++ b/source3/libgpo/gpo_filesync.c
@@ -40,7 +40,7 @@ NTSTATUS gpo_copy_file(TALLOC_CTX *mem_ctx,
{
NTSTATUS result;
uint16_t fnum;
- int fd = 0;
+ int fd = -1;
char *data = NULL;
static int io_bufsize = 64512;
int read_size = io_bufsize;
@@ -82,7 +82,7 @@ NTSTATUS gpo_copy_file(TALLOC_CTX *mem_ctx,
if (fnum) {
cli_close(cli, fnum);
}
- if (fd) {
+ if (fd != -1) {
close(fd);
}