diff options
Diffstat (limited to 'src/survive_driverman.c')
-rw-r--r-- | src/survive_driverman.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/survive_driverman.c b/src/survive_driverman.c index c43e8ec..71a4c10 100644 --- a/src/survive_driverman.c +++ b/src/survive_driverman.c @@ -19,6 +19,10 @@ void RegisterDriver(const char *element, void *data) { void *GetDriver(const char *element) { int i; + + if (element == 0) + return 0; + for (i = 0; i < NrDrivers; i++) { if (strcmp(element, DriverNames[i]) == 0) return Drivers[i]; |