diff options
-rw-r--r-- | test/test.lv2/test.c | 6 | ||||
-rw-r--r-- | test/test_port.c | 4 | ||||
-rw-r--r-- | utils/lv2apply.c | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/test/test.lv2/test.c b/test/test.lv2/test.c index fa3fb6e..b3ddd85 100644 --- a/test/test.lv2/test.c +++ b/test/test.lv2/test.c @@ -350,9 +350,9 @@ restore(LV2_Handle instance, } } - size_t size; - uint32_t type; - uint32_t valflags; + size_t size = 0; + uint32_t type = 0; + uint32_t valflags = 0; plugin->num_runs = *(int32_t*)retrieve( callback_data, 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); diff --git a/utils/lv2apply.c b/utils/lv2apply.c index 0ef86df..2f17a67 100644 --- a/utils/lv2apply.c +++ b/utils/lv2apply.c @@ -91,7 +91,7 @@ sopen(LV2Apply* self, const char* path, int mode, SF_INFO* fmt) static void sclose(const char* path, SNDFILE* file) { - int st; + int st = 0; if (file && (st = sf_close(file))) { fatal(NULL, 1, "Failed to close %s (%s)\n", path, sf_error_number(st)); } |