diff options
author | Vinson Lee <[email protected]> | 2013-09-09 20:25:55 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-09-10 09:52:03 -0700 |
commit | 787ac4207e30a18b4286faa2140d06b6fb8daf36 (patch) | |
tree | b9aff2c3fc7520358dd640fcc90ad32a5d154d5b /src/glsl/builtin_functions.cpp | |
parent | 118cdd1d3f572ac06bb3570fd987a6528ed34a09 (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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/builtin_functions.cpp')
-rw-r--r-- | src/glsl/builtin_functions.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |