Skip to content

Commit 807cfa2

Browse files
committed
fix while condition
1 parent 3bc938a commit 807cfa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subcommand/config_subcommand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void config_subcommand::run_list()
4343
throw_if_error(git_config_iterator_new(&iter, cfg));
4444

4545
git_config_entry* entry;
46-
while (git_config_next(&entry, iter))
46+
while (git_config_next(&entry, iter) == GIT_OK)
4747
{
4848
std::cout << entry->name << "=" << entry->value << std::endl;
4949
}

0 commit comments

Comments
 (0)