]> git.proxmox.com Git - libgit2.git/commit - src/config_file.c
Fix a bug and GCC warning introduced in 932669b
authorSebastian Schuberth <sschuberth@gmail.com>
Fri, 9 Sep 2011 07:32:39 +0000 (09:32 +0200)
committerSebastian Schuberth <sschuberth@gmail.com>
Mon, 12 Sep 2011 20:22:59 +0000 (22:22 +0200)
commit79a343968a4a91c98fae1afa61cdadc5b573c93d
treedd0fdf25df109bac1053e171f5b9362f579dca44
parentbac47f1ff8c6684671c67000c747a6b0a7f2c6dc
Fix a bug and GCC warning introduced in 932669b

For unsigned types, the comparison >= 0 is always true, so avoid it by using
a post-decrement and integrating the initial assigment into the loop body.
No change in behavior is intended.
src/config_file.c