summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-23 17:49:04 +0100
committerVolker Lendecke <vl@samba.org>2008-03-23 18:28:23 +0100
commit9c45d491400bbefd7ad78b0d472c127ecbd0076d (patch)
tree5092520ab1b820eee51c6ade682b637f940b3c34
parent43554ded6de6cc8e70b6146f245e6a421823f203 (diff)
downloadsamba-9c45d491400bbefd7ad78b0d472c127ecbd0076d.tar.gz
samba-9c45d491400bbefd7ad78b0d472c127ecbd0076d.tar.bz2
samba-9c45d491400bbefd7ad78b0d472c127ecbd0076d.zip
Fix Coverity ID 453
(This used to be commit 8f875674e7cf9ebd405561b1e3ab72b0284ce321)
-rw-r--r--source3/libgpo/gpo_ini.c4
1 files changed, 2 insertions, 2 deletions
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);
}