From 5c849afa23b33c53e026cddce920634e8861d930 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 16 Dec 2018 02:01:00 +0100 Subject: [PATCH] [tests] use double quote to test \0 as a string Prevents clang throwing an error, since '\0' is rightfully treated as a single character. See this explanation by Stephen J. Butler: https://lists.macports.org/pipermail/macports-dev/2016-June/033168.html --- tests/src/io/test-source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/io/test-source.c b/tests/src/io/test-source.c index abc536cc..426bdc91 100644 --- a/tests/src/io/test-source.c +++ b/tests/src/io/test-source.c @@ -70,7 +70,7 @@ int test_wrong_params(void) aubio_source_t *s; if (new_aubio_source(0, samplerate, hop_size)) return 1; - if (new_aubio_source('\0', samplerate, hop_size)) return 1; + if (new_aubio_source("\0", samplerate, hop_size)) return 1; if (new_aubio_source(uri, -1, hop_size)) return 1; if (new_aubio_source(uri, 0, 0)) return 1; -- 2.11.0