[libsecret/tintou/no-double-close] secret-file-backend: Avoid closing the same file descriptor twice
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsecret/tintou/no-double-close] secret-file-backend: Avoid closing the same file descriptor twice
- Date: Wed, 16 Jun 2021 07:06:49 +0000 (UTC)
commit 0b2844da47104ae9f07e8f7618be761408146e3f
Author: Corentin Noël <corentin noel collabora com>
Date: Wed Jun 16 09:05:33 2021 +0200
secret-file-backend: Avoid closing the same file descriptor twice
It is already closed a few lines above
libsecret/secret-file-backend.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/libsecret/secret-file-backend.c b/libsecret/secret-file-backend.c
index ad19347..4896b47 100644
--- a/libsecret/secret-file-backend.c
+++ b/libsecret/secret-file-backend.c
@@ -397,7 +397,6 @@ on_bus_get (GObject *source_object,
return;
}
- close (fds[1]);
init->stream = g_unix_input_stream_new (fds[0], TRUE);
g_variant_builder_init (&options, G_VARIANT_TYPE_VARDICT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]