mirror of git://git.sysmocom.de/ofono
simfs: Add NULL check
This commit is contained in:
parent
5d0f67e786
commit
6ed9fe85a5
|
@ -88,6 +88,9 @@ struct sim_fs {
|
|||
|
||||
void sim_fs_free(struct sim_fs *fs)
|
||||
{
|
||||
if (fs == NULL)
|
||||
return;
|
||||
|
||||
if (fs->op_source) {
|
||||
g_source_remove(fs->op_source);
|
||||
fs->op_source = 0;
|
||||
|
|
Loading…
Reference in New Issue