bin/refs: Fix error handling logic

Spotted by Coverity.

Coverity CID: 1452202

Closes: #1037
Approved by: jlebon
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2017-08-02 15:34:16 +00:00
1 parent 36ab8cd0e1
commit 78348fa296
1 file changed
+2 -1
+2 -1
View File
@@ -264,7 +264,8 @@ ostree_builtin_refs (int argc, char **argv, GCancellable *cancellable, GError **
goto out;
}
ret = do_ref (repo, NULL, cancellable, error);
if (!do_ref (repo, NULL, cancellable, error))
goto out;
}
ret = TRUE;