summaryrefslogtreecommitdiff
path: root/config/udev.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-09 14:25:54 -0800
committerKeith Packard <keithp@keithp.com>2011-03-09 14:25:54 -0800
commitc3c0e2fdd326214e271ce144e8fc2725cbd738ef (patch)
treec7ee795c9252e1c13ae86848d109773d15b82d9e /config/udev.c
parenta19771e4337d1c4600550314bbc42a1495a023ff (diff)
parent73555555a440855f9ae64c3367c5c7dca98c8741 (diff)
Merge remote branch 'whot/for-keith'
Diffstat (limited to 'config/udev.c')
-rw-r--r--config/udev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/udev.c b/config/udev.c
index ab27c98a5..678e47a39 100644
--- a/config/udev.c
+++ b/config/udev.c
@@ -197,10 +197,10 @@ device_added(struct udev_device *udev_device)
unwind:
free(config_info);
- while (!dev && (tmpo = options)) {
+ while ((tmpo = options)) {
options = tmpo->next;
- free(tmpo->key);
- free(tmpo->value);
+ free(tmpo->key); /* NULL if dev != NULL */
+ free(tmpo->value); /* NULL if dev != NULL */
free(tmpo);
}