From: Denis Kenzior Date: Tue, 26 Feb 2013 21:46:43 +0000 (-0600) Subject: handsfree-audio: properly increment next_card_id X-Git-Tag: 1.13~177 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7a3f3990ae90057abfd0db2e9577b720cd32f2b;p=platform%2Fupstream%2Fofono.git handsfree-audio: properly increment next_card_id --- diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c index db65971..b2d4b97 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);