summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-11-30 21:50:26 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-08 16:10:58 +0200
commit5894e16ca75e96262e6c63e5f417a89b434ccec9 (patch)
tree886c8216f8f683bbacf3ca31828a11a3159c7ea5 /audio
parent8992d6668f1de5b4351a36ca794a983f721d0df3 (diff)
Fix uninitialized variable gcc warnings
Diffstat (limited to 'audio')
-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':