diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-17 00:40:03 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-10-17 00:40:03 +0200 |
commit | fc42bd5d6b56654bf8c88edec63e90dcab75699c (patch) | |
tree | 7e0f7795cce1f87286fbf86054d7f26059651188 /udev/udev-rules.c | |
parent | bb144ed14d34716435f18ea6a0ea0ee899f809e9 (diff) |
update rules file parsing
Diffstat (limited to 'udev/udev-rules.c')
-rw-r--r-- | udev/udev-rules.c | 2 |
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; |