summaryrefslogtreecommitdiff
path: root/src/modem.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-03-30 13:30:50 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-03-30 13:30:50 -0500
commit767d2972631e93622ff02b7b4e041622f4c382e5 (patch)
treeb851cf9042744ebd4932a04cee101bde6c656ff5 /src/modem.c
parent3e799ce8b443e8eb547df2710329671814297cd4 (diff)
downloadofono-767d2972631e93622ff02b7b4e041622f4c382e5.tar.gz
modem: Only find registered atoms
Change the semantics of __ofono_modem_find_atom to only return registered atoms.
Diffstat (limited to 'src/modem.c')
-rw-r--r--src/modem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modem.c b/src/modem.c
index 908c7c58..96f36ffe 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -318,7 +318,7 @@ struct ofono_atom *__ofono_modem_find_atom(struct ofono_modem *modem,
for (l = modem->atoms; l; l = l->next) {
atom = l->data;
- if (atom->type == type)
+ if (atom->type == type && atom->unregister != NULL)
return atom;
}