summaryrefslogtreecommitdiffstats
path: root/test/test_port.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-16 17:00:22 +0100
committerDavid Robillard <d@drobilla.net>2020-12-16 17:00:22 +0100
commit206c176beaa21295bc2aca06da0d75a34924fef4 (patch)
treeca54b865edd96d1a0c90421b7b290dac8e645ec1 /test/test_port.c
parenta0a127b5c6395fc402861f95852b9624f9d2621f (diff)
downloadlilv-206c176beaa21295bc2aca06da0d75a34924fef4.tar.gz
lilv-206c176beaa21295bc2aca06da0d75a34924fef4.tar.bz2
lilv-206c176beaa21295bc2aca06da0d75a34924fef4.zip
Isolate variable declarations and initialize all variables
Diffstat (limited to 'test/test_port.c')
-rw-r--r--test/test_port.c4
1 files changed, 3 insertions, 1 deletions
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);