summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2013-02-26 15:46:43 -0600
committerDenis Kenzior <denkenz@gmail.com>2013-02-26 15:47:08 -0600
commitc7a3f3990ae90057abfd0db2e9577b720cd32f2b (patch)
treeec08d606ab578783f75e05623a25a9d20e723dfb /src
parent36cdc0297a0906ae8c3761999c81d4f7e0fa3c27 (diff)
handsfree-audio: properly increment next_card_id
Diffstat (limited to 'src')
-rw-r--r--src/handsfree-audio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index db65971a..b2d4b971 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -173,6 +173,8 @@ int ofono_handsfree_card_register(struct ofono_handsfree_card *card)
card, NULL))
return -EIO;
+ next_card_id += 1;
+
card->path = g_strdup(path);
emit_card_added(card);