diff options
author | David Robillard <d@drobilla.net> | 2020-07-15 17:43:14 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-16 23:37:49 +0200 |
commit | 5682a7eeda2a050dec1f963a01b06b53e9df0a2f (patch) | |
tree | 4e2ecf62d3d469d871900864d55d75e773006726 /src/state.c | |
parent | 8ad1fef18a1573bd8f8818a20b3c8d4708b42cc3 (diff) | |
download | lilv-5682a7eeda2a050dec1f963a01b06b53e9df0a2f.tar.gz lilv-5682a7eeda2a050dec1f963a01b06b53e9df0a2f.tar.bz2 lilv-5682a7eeda2a050dec1f963a01b06b53e9df0a2f.zip |
Add missing variable initializations
Diffstat (limited to 'src/state.c')
-rw-r--r-- | src/state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c index d741e4a..e4e381a 100644 --- a/src/state.c +++ b/src/state.c @@ -433,7 +433,8 @@ lilv_state_new_from_instance(const LilvPlugin* plugin, const LilvPort* const port = plugin->ports[i]; if (lilv_port_is_a(plugin, port, lv2_ControlPort) && lilv_port_is_a(plugin, port, lv2_InputPort)) { - uint32_t size, type; + uint32_t size = 0; + uint32_t type = 0; const char* sym = lilv_node_as_string(port->symbol); const void* value = get_value(sym, user_data, &size, &type); append_port_value(state, sym, value, size, type); |