From 5894e16ca75e96262e6c63e5f417a89b434ccec9 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 30 Nov 2008 21:50:26 +0200 Subject: Fix uninitialized variable gcc warnings --- audio/telephony-maemo.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio/telephony-maemo.c') 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': -- cgit