summaryrefslogtreecommitdiff
path: root/udev/udev-rules.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-17 00:40:03 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-17 00:40:03 +0200
commitfc42bd5d6b56654bf8c88edec63e90dcab75699c (patch)
tree7e0f7795cce1f87286fbf86054d7f26059651188 /udev/udev-rules.c
parentbb144ed14d34716435f18ea6a0ea0ee899f809e9 (diff)
update rules file parsing
Diffstat (limited to 'udev/udev-rules.c')
-rw-r--r--udev/udev-rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c
index 6f53b6a88b..00435d4af7 100644
--- a/udev/udev-rules.c
+++ b/udev/udev-rules.c
@@ -378,7 +378,7 @@ static int import_file_into_env(struct udev_device *dev, const char *filename)
f = fopen(filename, "r");
if (f == NULL)
return -1;
- while (fgets(line, sizeof(line), f))
+ while (fgets(line, sizeof(line), f) != NULL)
import_property_from_string(dev, line);
fclose(f);
return 0;