coverity: don't use newname after null check
coverity: don't use newname after null check

Actually, get rid of the temporary variables, and set newname
and lxcpath to usable values if they were NULL.

Signed-off-by: Serge Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>
Acked-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

federicobriata/lxc,thmo/lxc,GreatFruitOmsk/lxc,GreatFruitOmsk/lxc,ecarrara/lxc,LynxChaus/lxc,Pelagicore/lxc,bmoar/lxc,ysbnim/lxc,QingweiPeterLan/cs188-lxc,fwilson42/lxc,ioops/lxc,hallyn/lxc,QingweiPeterLan/cs188-lxc,regit/lxc,thmo/lxc,yubo/lxc,raspberrypython/lxc,caglar10ur/lxc,Distrotech/lxc,virajs/lxc,DarknessBeforeDawn/lxc,ioops/lxc,JohnPeacockMessageSystems/lxc,aeris/lxc,federicobriata/lxc,regit/lxc,yubo/lxc,major/lxc,hallyn/lxc,bmoar/lxc,hfuCN/lxc,hkjolhede/lxc,hfuCN/lxc,hallyn/lxc,thmo/lxc,raspberrypython/lxc,codebauss/lxc,federicobriata/lxc,DarknessBeforeDawn/lxc,terceiro/lxc,JohnPeacockMessageSystems/lxc,efiop/lxc,akshaykarle/lxc,sapun/lxc,christiaan/lxc,weizhenwei/lxc,weizhenwei/lxc,rowhit/lxc,Pelagicore/lxc,bostjan/lxc,Distrotech/lxc,jirislaby/lxc,tych0/lxc,bostjan/lxc,christiaan/lxc,major/lxc,DarknessBeforeDawn/lxc,lazy404/lxc,caglar10ur/lxc,lisongmin/lxc,hfuCN/lxc,bostjan/lxc,armcc/lxc,ss1h2a3tw/lxc,ecarrara/lxc,QingweiPeterLan/cs188-lxc,ecarrara/lxc,aeris/lxc,efiop/lxc,fwilson42/lxc,codebauss/lxc,jirislaby/lxc,lazy404/lxc,major/lxc,ioops/lxc,hkjolhede/lxc,GreatFruitOmsk/lxc,regit/lxc,akshaykarle/lxc,rldleblanc/lxc,LynxChaus/lxc,ksperis/lxc,efiop/lxc,lazy404/lxc,raspberrypython/lxc,ysbnim/lxc,armcc/lxc,rldleblanc/lxc,JohnPeacockMessageSystems/lxc,rldleblanc/lxc,Distrotech/lxc,aeris/lxc,szaszg/lxc,weizhenwei/lxc,lisongmin/lxc,szaszg/lxc,lisongmin/lxc,LynxChaus/lxc,tych0/lxc,sapun/lxc,yubo/lxc,fwilson42/lxc,virajs/lxc,ksperis/lxc,christiaan/lxc,codebauss/lxc,akshaykarle/lxc,cjwatson/lxc,virajs/lxc,szaszg/lxc,Ponce/lxc,Ponce/lxc,rowhit/lxc,cjwatson/lxc,cjwatson/lxc,ss1h2a3tw/lxc,Pelagicore/lxc,rowhit/lxc,armcc/lxc,Ponce/lxc,sapun/lxc,bmoar/lxc,terceiro/lxc,jirislaby/lxc,ysbnim/lxc,caglar10ur/lxc,ss1h2a3tw/lxc,terceiro/lxc,ksperis/lxc,tych0/lxc,hkjolhede/lxc