local transport: don't segfault on wrong URL
local transport: don't segfault on wrong URL

memset the structure on initialisation and don't try to dereference
the vector with the heads if we didn't find a repository.

Signed-off-by: Carlos Martín Nieto <ab5e2bca84933118bbc9d48ffaccce3bac4eeb64@cmartin.tk>

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