bin/refs: Fix error handling logic

Spotted by Coverity.

Coverity CID: 1452202

Closes: #1037
Approved by: jlebon
This commit is contained in:
Colin Walters 2017-07-31 09:30:09 -04:00 committed by Atomic Bot
parent 36ab8cd0e1
commit 78348fa296
1 changed files with 2 additions and 1 deletions

View File

@ -264,7 +264,8 @@ ostree_builtin_refs (int argc, char **argv, GCancellable *cancellable, GError **
goto out; goto out;
} }
ret = do_ref (repo, NULL, cancellable, error); if (!do_ref (repo, NULL, cancellable, error))
goto out;
} }
ret = TRUE; ret = TRUE;