summaryrefslogtreecommitdiff
path: root/udev/udev-event.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-26 02:31:54 +0100
committerKay Sievers <kay.sievers@vrfy.org>2008-10-26 02:31:54 +0100
commit1822e9b033fcd91a7dfd3b0bfd12cfbbd93fc470 (patch)
treed9c37e4dc229d815686de1ae68f07bae63b605c3 /udev/udev-event.c
parent21cfb0436c736c262baa37d96625041e3a96db07 (diff)
do not init string arrays, just clear first byte
Diffstat (limited to 'udev/udev-event.c')
-rw-r--r--udev/udev-event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c
index fcb9993709..e297df0383 100644
--- a/udev/udev-event.c
+++ b/udev/udev-event.c
@@ -291,9 +291,10 @@ found:
err(event->udev, "missing file parameter for attr\n");
else {
const char *val;
- char value[UTIL_NAME_SIZE] = "";
+ char value[UTIL_NAME_SIZE];
size_t size;
+ value[0] = '\0';
util_resolve_subsys_kernel(event->udev, attr, value, sizeof(value), 1);
val = udev_device_get_sysattr_value(event->dev, attr);