mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-24 16:57:42 -04:00
dir: Add some precondition checks to repo_pull()
This commit is contained in:
committed by
Phaedrus Leeds
parent
11158c2481
commit
af04ea669a
@@ -5286,6 +5286,9 @@ repo_pull (OstreeRepo *self,
|
||||
const char *refs_to_fetch[2];
|
||||
g_autofree char *sideload_url = NULL;
|
||||
|
||||
g_return_val_if_fail (ref_to_fetch != NULL, FALSE);
|
||||
g_return_val_if_fail (rev_to_fetch != NULL, FALSE);
|
||||
|
||||
/* The ostree fetcher asserts if error is NULL */
|
||||
if (error == NULL)
|
||||
error = &dummy_error;
|
||||
|
||||
Reference in New Issue
Block a user