checkout: Fix previous commit
Don't try to close in cases where we don't have input.
This commit is contained in:
parent
0238a2c26c
commit
6a01ec1032
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue