From 18ecb22f93d07594a104c1e7923b284e8e7a7a80 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 29 Jul 2009 09:58:52 -0500 Subject: [PATCH] Fix segfault --- src/sms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sms.c b/src/sms.c index 0c71ef4..9cb7a40 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); } } -- 2.7.4