summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-04 15:53:27 +0100
committerKay Sievers <kay@vrfy.org>2013-11-04 15:54:33 +0100
commit5c11fbe3a75e8015f2c26736787d4279c091f091 (patch)
treeec37244b59a9b1cccb5a51ca0f83c8ee6e77f880 /src
parentb151ca99332f08a6b9909baf94bc5667a589538b (diff)
udev: udevd - rules can be NULL when reloading
Diffstat (limited to 'src')
-rw-r--r--src/udev/udev-rules.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index e2ba0b0cc8..320f004dc3 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -1704,6 +1704,9 @@ struct udev_rules *udev_rules_unref(struct udev_rules *rules)
bool udev_rules_check_timestamp(struct udev_rules *rules)
{
+ if (!rules)
+ return false;
+
return paths_check_timestamp(rules->dirs, &rules->dirs_ts_usec, true);
}