git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43554de
)
Fix Coverity ID 453
author
Volker Lendecke
<vl@samba.org>
Sun, 23 Mar 2008 16:49:04 +0000
(17:49 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sun, 23 Mar 2008 17:28:23 +0000
(18:28 +0100)
(This used to be commit
8f875674e7cf9ebd405561b1e3ab72b0284ce321
)
source3/libgpo/gpo_ini.c
patch
|
blob
|
history
diff --git
a/source3/libgpo/gpo_ini.c
b/source3/libgpo/gpo_ini.c
index d8f14b609f3a965ed297b88ef1a6bd9f77a90cdd..6f1593c2c22264fd497bc722cecc269534faa71e 100644
(file)
--- 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);
}