mirror of git://git.sysmocom.de/ofono
Fix: Fix segfault from improperly initialized data
This commit is contained in:
parent
1af138d6ec
commit
50ae504bc6
|
@ -992,6 +992,7 @@ void ofono_gprs_add_context(struct ofono_gprs *gprs,
|
|||
struct ofono_gprs_context *gc)
|
||||
{
|
||||
gprs->context_driver = gc;
|
||||
gc->gprs = gprs;
|
||||
|
||||
__ofono_atom_register(gc->atom, gprs_context_unregister);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue