summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2013-09-09 20:25:55 -0700
committerVinson Lee <vlee@freedesktop.org>2013-09-10 09:52:03 -0700
commit787ac4207e30a18b4286faa2140d06b6fb8daf36 (patch)
treeb9aff2c3fc7520358dd640fcc90ad32a5d154d5b
parent118cdd1d3f572ac06bb3570fd987a6528ed34a09 (diff)
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 <vlee@freedesktop.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-rw-r--r--src/glsl/builtin_functions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp
index 1fedca4ceb..ce78df12e8 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);
}