ostree-repo-static-delta-processing: Don't close(-1)
Ultimately harmless, but causes somewhat scary strace messages. Closes: #591 Approved by: cgwalters
This commit is contained in:
1 parent
a8f5c20209
commit
fbce608177
1 file changed
+2
-2
@@ -842,7 +842,7 @@ dispatch_set_read_source (OstreeRepo *repo,
|
|||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
guint64 source_offset;
|
guint64 source_offset;
|
||||||
|
|
||||||
if (state->read_source_fd)
|
if (state->read_source_fd != -1)
|
||||||
{
|
{
|
||||||
(void) close (state->read_source_fd);
|
(void) close (state->read_source_fd);
|
||||||
state->read_source_fd = -1;
|
state->read_source_fd = -1;
|
||||||
@@ -887,7 +887,7 @@ dispatch_unset_read_source (OstreeRepo *repo,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state->read_source_fd)
|
if (state->read_source_fd != -1)
|
||||||
{
|
{
|
||||||
(void) close (state->read_source_fd);
|
(void) close (state->read_source_fd);
|
||||||
state->read_source_fd = -1;
|
state->read_source_fd = -1;
|
||||||
|
|||||||
Reference in new issue
Block a user