aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-scope.lv2/examploscope.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-16 16:49:57 +0100
committerDavid Robillard <d@drobilla.net>2020-12-16 16:49:57 +0100
commitbbff4459368ea25f1ae1ee3452a5b5c5dcd64e06 (patch)
treeefc1fb7fd89f9e36d34d15a94482706e5c445b0c /plugins/eg-scope.lv2/examploscope.c
parent37ec8d59b349b9b735b58134a72e7372f36345dc (diff)
downloadlv2-bbff4459368ea25f1ae1ee3452a5b5c5dcd64e06.tar.xz
Isolate variable declarations and initialize all variables
Diffstat (limited to 'plugins/eg-scope.lv2/examploscope.c')
-rw-r--r--plugins/eg-scope.lv2/examploscope.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/eg-scope.lv2/examploscope.c b/plugins/eg-scope.lv2/examploscope.c
index a4f5f3f..e175804 100644
--- a/plugins/eg-scope.lv2/examploscope.c
+++ b/plugins/eg-scope.lv2/examploscope.c
@@ -358,9 +358,9 @@ state_restore(LV2_Handle instance,
{
EgScope* self = (EgScope*)instance;
- size_t size;
- uint32_t type;
- uint32_t valflags;
+ size_t size = 0;
+ uint32_t type = 0;
+ uint32_t valflags = 0;
const void* spp = retrieve(
handle, self->uris.ui_spp, &size, &type, &valflags);