summaryrefslogtreecommitdiff
path: root/src/udev/test-udev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/udev/test-udev.c')
-rw-r--r--src/udev/test-udev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/test-udev.c b/src/udev/test-udev.c
index 53ecd95bcf..150cb16a31 100644
--- a/src/udev/test-udev.c
+++ b/src/udev/test-udev.c
@@ -88,7 +88,7 @@ int main(int argc, char *argv[])
/* do what devtmpfs usually provides us */
if (udev_device_get_devnode(dev) != NULL) {
- mode_t mode;
+ mode_t mode = 0600;
if (strcmp(udev_device_get_subsystem(dev), "block") == 0)
mode |= S_IFBLK;