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
1 changed files with 3 additions and 0 deletions

View File

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