aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-04-25 21:57:08 +0200
committerMattias Andrée <maandree@operamail.com>2015-04-25 21:57:08 +0200
commitd1a8bbce3725075a56bbfbd038aa599f3c99e891 (patch)
tree9d8d2858ba0fa4a5e0f85a77ed56d6a8707527ae
parentm (diff)
downloadbus-d1a8bbce3725075a56bbfbd038aa599f3c99e891.tar.gz
bus-d1a8bbce3725075a56bbfbd038aa599f3c99e891.tar.bz2
bus-d1a8bbce3725075a56bbfbd038aa599f3c99e891.tar.xz
fix telephony-and-music for update api
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--doc/examples/telephony-and-music/monitor.c2
1 files changed, 2 insertions, 0 deletions
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));