Fixed some issues/warnings found by clang-analyzer.

This commit is contained in:
Juan RP
2013-06-20 11:25:43 +02:00
parent 42c0766c00
commit 52fc384e4e
5 changed files with 9 additions and 13 deletions

View File

@ -107,6 +107,8 @@ _prop_array_free(prop_stack_t stack, prop_object_t *obj)
return (_PROP_OBJECT_FREE_DONE);
}
if (pa->pa_array == NULL)
return _PROP_OBJECT_FREE_DONE;
po = pa->pa_array[pa->pa_count - 1];
_PROP_ASSERT(po != NULL);