mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
lib/pull: Simplify a for-loop initialisation
It’s a bit neater to initialise the loop iterator and maximum in the same place. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #911 Approved by: cgwalters
This commit is contained in:
parent
52ede69df8
commit
14082e6b03
@ -3174,8 +3174,7 @@ ostree_repo_pull_with_options (OstreeRepo *self,
|
||||
if (pull_data->summary)
|
||||
{
|
||||
refs = g_variant_get_child_value (pull_data->summary, 0);
|
||||
n = g_variant_n_children (refs);
|
||||
for (i = 0; i < n; i++)
|
||||
for (i = 0, n = g_variant_n_children (refs); i < n; i++)
|
||||
{
|
||||
const char *refname;
|
||||
g_autoptr(GVariant) ref = g_variant_get_child_value (refs, i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user