---
src/handsfree-audio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index db65971..acd08e4 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -165,7 +165,7 @@ int ofono_handsfree_card_register(struct
ofono_handsfree_card *card)
if (card == NULL)
return -EINVAL;
- snprintf(path, sizeof(path), "/card_%d", next_card_id);
+ snprintf(path, sizeof(path), "/card_%d", next_card_id++);
if (!g_dbus_register_interface(ofono_dbus_get_connection(), path,
HFP_AUDIO_CARD_INTERFACE,
--
1.7.11.7
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono