From 9c45d491400bbefd7ad78b0d472c127ecbd0076d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 23 Mar 2008 17:49:04 +0100 Subject: Fix Coverity ID 453 (This used to be commit 8f875674e7cf9ebd405561b1e3ab72b0284ce321) --- source3/libgpo/gpo_ini.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/libgpo') diff --git a/source3/libgpo/gpo_ini.c b/source3/libgpo/gpo_ini.c index d8f14b609f..6f1593c2c2 100644 --- a/source3/libgpo/gpo_ini.c +++ b/source3/libgpo/gpo_ini.c @@ -51,7 +51,7 @@ static NTSTATUS convert_file_from_ucs2(TALLOC_CTX *mem_ctx, const char *filename_in, char **filename_out) { - int tmp_fd = 0; + int tmp_fd = -1; uint8 *data_in = NULL; uint8 *data_out = NULL; char *tmp_name = NULL; @@ -112,7 +112,7 @@ static NTSTATUS convert_file_from_ucs2(TALLOC_CTX *mem_ctx, status = NT_STATUS_OK; out: - if (tmp_fd) { + if (tmp_fd != -1) { close(tmp_fd); } -- cgit