util: Avoid Coverity FORWARD_NULL

Coverity claims it could be possible to call virDBusTypeStackFree with
*stack == NULL and although the two API's that call it don't appear to
allow that - I suppose it's better to be safe than sorry
This commit is contained in:
John Ferlan 2015-09-01 07:02:30 -04:00
parent 53caf99db6
commit c78e1cfcb5

View File

@ -544,6 +544,10 @@ static void virDBusTypeStackFree(virDBusTypeStack **stack,
size_t *nstack)
{
size_t i;
if (!*stack)
return;
/* The iter in the first level of the stack is the
* root iter which must not be freed
*/