From d1a8bbce3725075a56bbfbd038aa599f3c99e891 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 25 Apr 2015 21:57:08 +0200 Subject: fix telephony-and-music for update api MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/examples/telephony-and-music/monitor.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/examples/telephony-and-music/monitor.c') diff --git a/doc/examples/telephony-and-music/monitor.c b/doc/examples/telephony-and-music/monitor.c index 34b90a4..bf3e290 100644 --- a/doc/examples/telephony-and-music/monitor.c +++ b/doc/examples/telephony-and-music/monitor.c @@ -29,6 +29,8 @@ static int callback(const char *message, void *user_data) { char *msg = NULL; size_t len = 0; + if (message == 0) + return 1; while ((len < 2047) && message[len]) len++; msg = malloc((len + 1) * sizeof(char)); -- cgit v1.2.3-70-g09d2