aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-metro.lv2
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-metro.lv2
parent37ec8d59b349b9b735b58134a72e7372f36345dc (diff)
downloadlv2-bbff4459368ea25f1ae1ee3452a5b5c5dcd64e06.tar.xz
Isolate variable declarations and initialize all variables
Diffstat (limited to 'plugins/eg-metro.lv2')
-rw-r--r--plugins/eg-metro.lv2/metro.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/eg-metro.lv2/metro.c b/plugins/eg-metro.lv2/metro.c
index 060060c..4531e1e 100644
--- a/plugins/eg-metro.lv2/metro.c
+++ b/plugins/eg-metro.lv2/metro.c
@@ -266,7 +266,9 @@ update_position(Metro* self, const LV2_Atom_Object* obj)
const MetroURIs* uris = &self->uris;
// Received new transport position/speed
- LV2_Atom *beat = NULL, *bpm = NULL, *speed = NULL;
+ LV2_Atom* beat = NULL;
+ LV2_Atom* bpm = NULL;
+ LV2_Atom* speed = NULL;
lv2_atom_object_get(obj,
uris->time_barBeat, &beat,
uris->time_beatsPerMinute, &bpm,