Fix warning

This commit is contained in:
Alexander Larsson
2016-04-14 22:12:25 +02:00
parent 167564b637
commit 3d7d9ece93
2 changed files with 8 additions and 4 deletions

View File

@@ -115,9 +115,12 @@ xdg_app_builtin_build_update_repo (int argc, char **argv,
all_deltas_hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
for (i = 0; i < all_deltas->len; i++)
g_hash_table_insert (all_deltas_hash,
g_strdup (g_ptr_array_index (all_deltas, i)),
NULL);
{
g_print ("adding %s\n", (char *)g_ptr_array_index (all_deltas, i));
g_hash_table_insert (all_deltas_hash,
g_strdup (g_ptr_array_index (all_deltas, i)),
NULL);
}
if (!ostree_repo_list_refs (repo, NULL, &all_refs,
cancellable, error))
@@ -145,6 +148,7 @@ xdg_app_builtin_build_update_repo (int argc, char **argv,
/* From empty */
g_print ("looking for %s\n", commit);
if (!g_hash_table_contains (all_deltas_hash, commit))
{
g_print ("Generating from-empty delta for %s (%s)\n", ref, commit);

View File

@@ -3596,7 +3596,7 @@ xdg_app_dir_fetch_ref_cache (XdgAppDir *self,
if (!xdg_app_dir_remote_fetch_summary (self, remote_name,
&summary_bytes,
cancellable, error))
return NULL;
return FALSE;
if (summary_bytes == NULL)
{