summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-29 09:58:52 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-29 12:26:05 -0500
commit18ecb22f93d07594a104c1e7923b284e8e7a7a80 (patch)
treee2525df8eda24bb95e1c7562455f3bfee3f6a2e9 /src
parent00fb6cce6285d02b32ae17d02e984c511a810c14 (diff)
downloadofono-18ecb22f93d07594a104c1e7923b284e8e7a7a80.tar.bz2
Fix segfault
Diffstat (limited to 'src')
-rw-r--r--src/sms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sms.c b/src/sms.c
index 0c71ef47..9cb7a404 100644
--- a/src/sms.c
+++ b/src/sms.c
@@ -294,7 +294,7 @@ static void tx_finished(const struct ofono_error *error, int mr, void *data)
if (error->type != OFONO_ERROR_TYPE_NO_ERROR) {
ofono_debug("Sending failed, retrying in 5 seconds...");
- g_timeout_add_seconds(5, tx_next, data);
+ g_timeout_add_seconds(5, tx_next, modem);
return;
}
@@ -305,7 +305,7 @@ static void tx_finished(const struct ofono_error *error, int mr, void *data)
if (g_queue_peek_head(sms->txq)) {
ofono_debug("Scheduling next");
- g_timeout_add(0, tx_next, sms);
+ g_timeout_add(0, tx_next, modem);
}
}