glsl: Add missing va_end in builtin_builder::add_function.
authorVinson Lee <vlee@freedesktop.org>
Tue, 10 Sep 2013 03:25:55 +0000 (20:25 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 10 Sep 2013 16:52:03 +0000 (09:52 -0700)
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>
src/glsl/builtin_functions.cpp

index 1fedca4cebb674287af9b5ec54381cba261c99a1..ce78df12e8d7462631925b6c09b9a440e824d99b 100644 (file)
@@ -1853,6 +1853,7 @@ builtin_builder::add_function(const char *name, ...)
 
       f->add_signature(sig);
    }
+   va_end(ap);
 
    shader->symbols->add_function(f);
 }