summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-08-27 14:37:38 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-08-27 19:01:43 -0500
commitf528e5d5661606cc96495f3b585546050395a0ac (patch)
treee64a0b686a5cb238ce87ca947da60c1f2dc6d16d /src
parent159903cc537a4c61ccfc6015eea9f7ecc7ee4054 (diff)
downloadofono-f528e5d5661606cc96495f3b585546050395a0ac.tar.bz2
stk: Reset cancel_cmd to NULL
Diffstat (limited to 'src')
-rw-r--r--src/stk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stk.c b/src/stk.c
index e9a284b2..a75b2b50 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -114,6 +114,7 @@ static int stk_respond(struct ofono_stk *stk, struct stk_response *rsp,
stk_command_free(stk->pending_cmd);
stk->pending_cmd = NULL;
+ stk->cancel_cmd = NULL;
stk->driver->terminal_response(stk, tlv_len, tlv, cb, stk);
@@ -1591,6 +1592,7 @@ static void stk_proactive_command_cancel(struct ofono_stk *stk)
stk->cancel_cmd(stk);
stk_command_free(stk->pending_cmd);
stk->pending_cmd = NULL;
+ stk->cancel_cmd = NULL;
}
}
@@ -1780,6 +1782,7 @@ static void stk_unregister(struct ofono_atom *atom)
if (stk->pending_cmd) {
stk_command_free(stk->pending_cmd);
stk->pending_cmd = NULL;
+ stk->cancel_cmd = NULL;
}
if (stk->idle_mode_text) {