udev: hwdb - exit if no database is available

This commit is contained in:
Kay Sievers 2012-10-25 22:22:29 +02:00
parent f17491e27d
commit 3b0a5f2023

View file

@ -277,6 +277,9 @@ static int builtin_hwdb(struct udev_device *dev, int argc, char *argv[], bool te
}; };
const char *subsys = NULL; const char *subsys = NULL;
if (!trie.f)
return EXIT_SUCCESS;
for (;;) { for (;;) {
int option; int option;