chiark / gitweb /
udevd: add missing braces
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 11 Oct 2011 11:25:44 +0000 (13:25 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 11 Oct 2011 11:25:44 +0000 (13:25 +0200)
David: uh, don't you need curly braces in the udevd.c part at the bottom?

udev/udevd.c

index 60edea9..05d4b2d 100644 (file)
@@ -1648,10 +1648,11 @@ int main(int argc, char *argv[])
                        struct udev_device *dev;
 
                        dev = udev_monitor_receive_device(monitor);
-                       if (dev != NULL)
+                       if (dev != NULL) {
                                udev_device_set_usec_initialized(dev, now_usec());
                                if (event_queue_insert(dev) < 0)
                                        udev_device_unref(dev);
+                       }
                }
 
                /* start new events */