summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/telephony-maemo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/telephony-maemo.c b/audio/telephony-maemo.c
index 7c91bd8e..dad32c5b 100644
--- a/audio/telephony-maemo.c
+++ b/audio/telephony-maemo.c
@@ -631,6 +631,8 @@ void telephony_call_hold_req(void *telephony_device, const char *cmd)
if (idx)
call = g_slist_nth_data(calls, strtol(idx, NULL, 0) - 1);
+ else
+ call = NULL;
switch (cmd[0]) {
case '0':