diff options
Diffstat (limited to 'mapfile.c')
-rw-r--r-- | mapfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -292,6 +292,10 @@ struct map_ent *map_by_uuid(struct map_ent **map, int uuid[4]) struct map_ent *map_by_devnm(struct map_ent **map, char *devnm) { struct map_ent *mp; + + if (!devnm) + return NULL; + if (!*map) map_read(map); |