summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rfid_reader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rfid_reader.c b/src/rfid_reader.c
index af947ac..a8e4001 100644
--- a/src/rfid_reader.c
+++ b/src/rfid_reader.c
@@ -43,6 +43,8 @@ rfid_reader_open(void *data, unsigned int id)
}
p = rfid_readers[id];
+ if (!p)
+ return NULL;
return p->open(data);
}
personal git repositories of Harald Welte. Your mileage may vary