diff --git a/handlers/ubivol_handler.c b/handlers/ubivol_handler.c index 9db6472e..0ad0321e 100644 --- a/handlers/ubivol_handler.c +++ b/handlers/ubivol_handler.c @@ -506,7 +506,7 @@ static int ubi_volume_get_info(char *device, char *name, int *dev_num, int *vol_ { struct ubi_part *ubi_part; - if (device) + if (strlen(device)) ubi_part = search_volume_local(device, name); else ubi_part = search_volume_global(name);