Fix segfault when iterating a revlist backwards
Fix segfault when iterating a revlist backwards

The `prev` and `next` pointers were not being updated after popping one
of the list elements.

Signed-off-by: Vicent Marti <6838a7c51796da15c3e6eae80ee6aba806e8818a@gmail.com>

MrHacky/libgit2,rcorre/libgit2,raybrad/libit2,oaastest/libgit2,joshtriplett/libgit2,yongthecoder/libgit2,KTXSoftware/libgit2,linquize/libgit2,jflesch/libgit2-mariadb,spraints/libgit2,nacho/libgit2,whoisj/libgit2,mrksrm/Mingijura,magnus98/TEST,skabel/manguse,leoyanggit/libgit2,whoisj/libgit2,zodiac/libgit2.js,chiayolin/libgit2,yosefhackmon/libgit2,leoyanggit/libgit2,KTXSoftware/libgit2,jflesch/libgit2-mariadb,swisspol/DEMO-libgit2,JIghtuse/libgit2,rcorre/libgit2,sim0629/libgit2,nokiddin/libgit2,mingyaaaa/libgit2,mingyaaaa/libgit2,dleehr/libgit2,swisspol/DEMO-libgit2,dleehr/libgit2,amyvmiwei/libgit2,saurabhsuniljain/libgit2,since2014/libgit2,oaastest/libgit2,kenprice/libgit2,yosefhackmon/libgit2,oaastest/libgit2,maxiaoqian/libgit2,sim0629/libgit2,sim0629/libgit2,spraints/libgit2,Corillian/libgit2,mingyaaaa/libgit2,dleehr/libgit2,kenprice/libgit2,kissthink/libgit2,nokiddin/libgit2,raybrad/libit2,JIghtuse/libgit2,jflesch/libgit2-mariadb,mhp/libgit2,jamieleecool/ptest,jamieleecool/ptest,ardumont/libgit2,raybrad/libit2,yongthecoder/libgit2,nokiddin/libgit2,evhan/libgit2,stewid/libgit2,jflesch/libgit2-mariadb,sygool/libgit2,nokiddin/libgit2,falqas/libgit2,skabel/manguse,Aorjoa/libgit2_maked_lib,oaastest/libgit2,spraints/libgit2,Snazz2001/libgit2,mhp/libgit2,ardumont/libgit2,iankronquist/libgit2,raybrad/libit2,spraints/libgit2,sygool/libgit2,joshtriplett/libgit2,Tousiph/Demo1,stewid/libgit2,Aorjoa/libgit2_maked_lib,mingyaaaa/libgit2,magnus98/TEST,mcanthony/libgit2,t0xicCode/libgit2,Corillian/libgit2,stewid/libgit2,iankronquist/libgit2,nokiddin/libgit2,leoyanggit/libgit2,MrHacky/libgit2,rcorre/libgit2,jflesch/libgit2-mariadb,Snazz2001/libgit2,falqas/libgit2,yongthecoder/libgit2,skabel/manguse,rcorre/libgit2,dleehr/libgit2,mhp/libgit2,mrksrm/Mingijura,Corillian/libgit2,t0xicCode/libgit2,zodiac/libgit2.js,maxiaoqian/libgit2,zodiac/libgit2.js,mcanthony/libgit2,chiayolin/libgit2,whoisj/libgit2,iankronquist/libgit2,stewid/libgit2,kenprice/libgit2,Aorjoa/libgit2_maked_lib,Corillian/libgit2,claudelee/libgit2,jeffhostetler/public_libgit2,falqas/libgit2,t0xicCode/libgit2,chiayolin/libgit2,yosefhackmon/libgit2,claudelee/libgit2,JIghtuse/libgit2,dleehr/libgit2,yongthecoder/libgit2,jeffhostetler/public_libgit2,kenprice/libgit2,magnus98/TEST,saurabhsuniljain/libgit2,magnus98/TEST,jamieleecool/ptest,MrHacky/libgit2,skabel/manguse,leoyanggit/libgit2,t0xicCode/libgit2,kenprice/libgit2,Tousiph/Demo1,joshtriplett/libgit2,Corillian/libgit2,iankronquist/libgit2,iankronquist/libgit2,nacho/libgit2,chiayolin/libgit2,swisspol/DEMO-libgit2,linquize/libgit2,yosefhackmon/libgit2,stewid/libgit2,saurabhsuniljain/libgit2,leoyanggit/libgit2,KTXSoftware/libgit2,ardumont/libgit2,spraints/libgit2,JIghtuse/libgit2,Aorjoa/libgit2_maked_lib,dleehr/libgit2,linquize/libgit2,jeffhostetler/public_libgit2,maxiaoqian/libgit2,kissthink/libgit2,joshtriplett/libgit2,claudelee/libgit2,mhp/libgit2,zodiac/libgit2.js,sygool/libgit2,jeffhostetler/public_libgit2,falqas/libgit2,Snazz2001/libgit2,MrHacky/libgit2,sim0629/libgit2,sygool/libgit2,maxiaoqian/libgit2,jflesch/libgit2-mariadb,saurabhsuniljain/libgit2,falqas/libgit2,kissthink/libgit2,amyvmiwei/libgit2,JIghtuse/libgit2,joshtriplett/libgit2,mrksrm/Mingijura,yosefhackmon/libgit2,amyvmiwei/libgit2,oaastest/libgit2,whoisj/libgit2,maxiaoqian/libgit2,mcanthony/libgit2,zodiac/libgit2.js,stewid/libgit2,KTXSoftware/libgit2,ardumont/libgit2,leoyanggit/libgit2,evhan/libgit2,magnus98/TEST,sim0629/libgit2,claudelee/libgit2,Tousiph/Demo1,nacho/libgit2,Snazz2001/libgit2,skabel/manguse,t0xicCode/libgit2,amyvmiwei/libgit2,evhan/libgit2,raybrad/libit2,chiayolin/libgit2,kissthink/libgit2,since2014/libgit2,nokiddin/libgit2,since2014/libgit2,yongthecoder/libgit2,mcanthony/libgit2,yosefhackmon/libgit2,Corillian/libgit2,mrksrm/Mingijura,Aorjoa/libgit2_maked_lib,kissthink/libgit2,sygool/libgit2,evhan/libgit2,mrksrm/Mingijura,mcanthony/libgit2,linquize/libgit2,saurabhsuniljain/libgit2,whoisj/libgit2,swisspol/DEMO-libgit2,Tousiph/Demo1,ardumont/libgit2,since2014/libgit2,mingyaaaa/libgit2,claudelee/libgit2,rcorre/libgit2,kenprice/libgit2,since2014/libgit2,JIghtuse/libgit2,Snazz2001/libgit2,kissthink/libgit2,swisspol/DEMO-libgit2,yongthecoder/libgit2,nacho/libgit2,amyvmiwei/libgit2,Tousiph/Demo1,amyvmiwei/libgit2,t0xicCode/libgit2,MrHacky/libgit2,falqas/libgit2,KTXSoftware/libgit2,sim0629/libgit2,since2014/libgit2,iankronquist/libgit2,Tousiph/Demo1,Snazz2001/libgit2,maxiaoqian/libgit2,mhp/libgit2,ardumont/libgit2,KTXSoftware/libgit2,mhp/libgit2,magnus98/TEST,saurabhsuniljain/libgit2,mcanthony/libgit2,claudelee/libgit2,mingyaaaa/libgit2,jeffhostetler/public_libgit2,swisspol/DEMO-libgit2,skabel/manguse,whoisj/libgit2,MrHacky/libgit2,jeffhostetler/public_libgit2,rcorre/libgit2,linquize/libgit2,sygool/libgit2,chiayolin/libgit2,jamieleecool/ptest,oaastest/libgit2,mrksrm/Mingijura,joshtriplett/libgit2,spraints/libgit2,linquize/libgit2