summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-01-07 15:34:25 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-01-07 15:34:25 +0200
commit29545f959ba8bb06c47fb928639da56b96b7b451 (patch)
tree738db5ec82f4890c5423db4b3f080751b51c8e58 /audio
parentddb7d14acf5a3c125ed5963f8cc3a3fbebd92b43 (diff)
Fix use of invalid pointer
Diffstat (limited to 'audio')
-rw-r--r--audio/telephony-maemo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/telephony-maemo.c b/audio/telephony-maemo.c
index 717b60f8..42179523 100644
--- a/audio/telephony-maemo.c
+++ b/audio/telephony-maemo.c
@@ -557,9 +557,11 @@ void telephony_dial_number_req(void *telephony_device, const char *number)
number += 4;
flags = CALL_FLAG_PRESENTATION_RESTRICTED;
} else if (number[0] == '>') {
+ const char *location = &number[1];
+
number = memory_dial_lookup(strtol(&number[1], NULL, 0));
if (!number) {
- error("No number at memory location %s", &number[1]);
+ error("No number at memory location %s", location);
telephony_dial_number_rsp(telephony_device,
CME_ERROR_INVALID_INDEX);
return;