clover: Add constructor for clover::module.

Fix defect reported by Coverity Scan after commit 95527fe229
("clover/module: add a printf support to module (v5)").

Uninitialized scalar variable (UNINIT)
uninit_use_in_call: Using uninitialized value
m.printf_strings_in_buffer when calling module.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8322>
This commit is contained in:
Vinson Lee 2021-01-04 20:27:42 -08:00
parent fb4e67df1e
commit 5c59e4efe2
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ namespace clover {
std::vector<argument> args;
};
module() : printf_strings_in_buffer(0) { }
void serialize(std::ostream &os) const;
static module deserialize(std::istream &is);
size_t size() const;