graceful error in case of non-existing reader backend driver
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1914 e0336214-984f-0b4b-a45f-81c69e1f0ede
This commit is contained in:
parent
29063ce3c9
commit
c9d3bf3389
|
@ -43,6 +43,8 @@ rfid_reader_open(void *data, unsigned int id)
|
|||
}
|
||||
|
||||
p = rfid_readers[id];
|
||||
if (!p)
|
||||
return NULL;
|
||||
|
||||
return p->open(data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue