From c7a3f3990ae90057abfd0db2e9577b720cd32f2b Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 26 Feb 2013 15:46:43 -0600 Subject: handsfree-audio: properly increment next_card_id --- src/handsfree-audio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/handsfree-audio.c') 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); -- cgit v1.2.3