diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-09-25 19:52:14 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-09-28 11:18:50 -0500 |
commit | 274cd012c4dbe3177211d13c97279fd790b90d4b (patch) | |
tree | c575c1f2820fa3102f15c17ae6d954c546dedfe9 /src | |
parent | bb746b3e9de04e10b657b9e180070666c34b73ac (diff) | |
download | ofono-274cd012c4dbe3177211d13c97279fd790b90d4b.tar.bz2 |
Fix: Report registered modems properly
Diffstat (limited to 'src')
-rw-r--r-- | src/modem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modem.c b/src/modem.c index c41e352e..9dc7784a 100644 --- a/src/modem.c +++ b/src/modem.c @@ -857,13 +857,13 @@ const char **__ofono_modem_get_list() modems = g_new0(const char *, g_slist_length(g_modem_list) + 1); - for (l = g_modem_list, i = 0; l; l = l->next, i++) { + for (l = g_modem_list, i = 0; l; l = l->next) { modem = l->data; if (modem->driver == NULL) continue; - modems[i] = modem->path; + modems[i++] = modem->path; } return modems; |