From 9271dc5f7eb3e18021e27f334837d28b921db8e5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 3 May 2009 23:05:11 +0200 Subject: Fix Coverity ID 913 (NEGATIVE_RETURNS) -- gd, please check! --- source3/libgpo/gpo_filesync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/libgpo') 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); } -- cgit