[libvirt] [PATCH] Fix error return value for VirCommandNewArgList

2013-04-11 Thread harryxiyou
From: Harry Wei harryxi...@gmail.com virCommandNewArgList may return NULL so we need not do following stuffs and just return '-1'. Signed-off-by: Harry Wei harryxi...@gmail.com CC: Osier Yang jy...@redhat.com CC: Michal Privoznik mpriv...@redhat.com --- src/storage/storage_backend_sheepdog.c |

Re: [libvirt] [PATCH] Fix error return value for VirCommandNewArgList

2013-04-11 Thread Eric Blake
On 04/11/2013 08:35 AM, harryxi...@gmail.com wrote: From: Harry Wei harryxi...@gmail.com virCommandNewArgList may return NULL so we need not do following stuffs and just return '-1'. Signed-off-by: Harry Wei harryxi...@gmail.com CC: Osier Yang jy...@redhat.com CC: Michal Privoznik