diff options
author | Chris Michael <cp.michael@samsung.com> | 2016-10-13 12:43:44 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2016-10-13 12:43:44 -0400 |
commit | 61643e6a06630f129f4ac5f2fabd0e26a5a4aa7b (patch) | |
tree | aedbfaad6bfb39c5a922bfcd9b10ea16f25038bc | |
parent | 4b2d459783721fc84916b7204ae7a75202679584 (diff) | |
download | efl-61643e6a06630f129f4ac5f2fabd0e26a5a4aa7b.tar.gz |
evas: Fix missing varargs cleanup
This patch fixes Coverity CID1364123 which reports that (in some
cases) va_end was not being called for var args. As they were
previously initialized with va_start, then va_end should be getting
called.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/lib/evas/canvas/evas_object_intercept.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_object_intercept.c b/src/lib/evas/canvas/evas_object_intercept.c index 13b9a9697e..d199add679 100644 --- a/src/lib/evas/canvas/evas_object_intercept.c +++ b/src/lib/evas/canvas/evas_object_intercept.c @@ -204,10 +204,10 @@ _evas_object_intercept_call(Evas_Object *eo_obj, Evas_Object_Intercept_Cb_Type c if (!internal) { if (_efl_canvas_object_clip_unset_block(eo_obj, obj)) - return 1; + goto end_block; } - if (!obj->interceptors) return 0; - return evas_object_intercept_call_clip_unset(eo_obj, obj); + if (!obj->interceptors) goto end_noblock; + blocked = evas_object_intercept_call_clip_unset(eo_obj, obj); } va_end(args); |