Ensure reuc vector is always valid
Ensure reuc vector is always valid

In theory, if there was a problem reading the REUC data, the
read_reuc() routine could have left uninitialized and invalid
data in the git_index vector.  This moves the line that inserts a
new entry into the vector down to the bottom of the routine so we
know all the content is already valid.  Also, per @linquize, this
uses calloc to ensure no uninitialized data.

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