checkout: Fix previous commit
Don't try to close in cases where we don't have input.
This commit is contained in:
1 parent
0238a2c26c
commit
6a01ec1032
1 file changed
+5
-2
@@ -503,8 +503,11 @@ checkout_one_file_at (OstreeRepo *repo,
|
||||
}
|
||||
}
|
||||
|
||||
if (!g_input_stream_close (input, cancellable, error))
|
||||
goto out;
|
||||
if (input)
|
||||
{
|
||||
if (!g_input_stream_close (input, cancellable, error))
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
ret = TRUE;
|
||||
|
||||
Reference in new issue
Block a user