From 206c176beaa21295bc2aca06da0d75a34924fef4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Dec 2020 17:00:22 +0100 Subject: Isolate variable declarations and initialize all variables --- test/test_port.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/test_port.c') diff --git a/test/test_port.c b/test/test_port.c index 63f8bd0..0aba6ea 100644 --- a/test/test_port.c +++ b/test/test_port.c @@ -228,7 +228,9 @@ main(void) assert(!strcmp(lilv_node_as_string(lilv_nodes_get_first(homepages)), "http://example.org/someplug")); - LilvNode *min, *max, *def; + LilvNode* min = NULL; + LilvNode* max = NULL; + LilvNode* def = NULL; lilv_port_get_range(plug, p, &def, &min, &max); assert(def); assert(min); -- cgit v1.2.1