From: Vinson Lee Date: Tue, 10 Sep 2013 03:25:55 +0000 (-0700) Subject: glsl: Add missing va_end in builtin_builder::add_function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=787ac4207e30a18b4286faa2140d06b6fb8daf36;p=mesa.git glsl: Add missing va_end in builtin_builder::add_function. Fixes "Missing varargs init or cleanup" defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 1fedca4cebb..ce78df12e8d 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/builtin_functions.cpp @@ -1853,6 +1853,7 @@ builtin_builder::add_function(const char *name, ...) f->add_signature(sig); } + va_end(ap); shader->symbols->add_function(f); }