checkout: Fix previous commit

Don't try to close in cases where we don't have input.
This commit is contained in:
Colin Walters 2013-09-11 11:54:53 -04:00
parent 0238a2c26c
commit 6a01ec1032
1 changed files with 5 additions and 2 deletions

View File

@ -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;