diff options
-rw-r--r-- | src/modem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modem.c b/src/modem.c index 22a614fe..209033f2 100644 --- a/src/modem.c +++ b/src/modem.c @@ -207,7 +207,7 @@ int __ofono_modem_add_atom_watch(struct ofono_modem *modem, watch = g_new0(struct ofono_atom_watch, 1); watch->type = type; - watch->id = modem->next_atom_watch_id++; + watch->id = ++modem->next_atom_watch_id; watch->notify = notify; watch->destroy = destroy; watch->notify_data = data; |