summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2016-05-24 01:34:29 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-05-23 19:34:29 -0400
commitbee26651fc3ca2fe6bed00cb0d9c91c429e9bb57 (patch)
tree8f8e99105b90744410b4b1b14f8d52734075ebdf /src
parent21b587cfd903722eef136aef9090882ad098334a (diff)
sd-device: udev-db - handle properties with empty value (#3330)
The statemachine was unable to parse properties with empty values, reported in [0]. When reaching the start of the KEY, we would unconditionally read one more character before starting to look for the end-of-line. Simply look for the end-of-line from the first character. [0]: <https://bugzilla.redhat.com/show_bug.cgi?id=1338823>
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd/sd-device/sd-device.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c
index b1c3d5f228..2d7e482b46 100644
--- a/src/libsystemd/sd-device/sd-device.c
+++ b/src/libsystemd/sd-device/sd-device.c
@@ -561,7 +561,6 @@ int device_read_uevent_file(sd_device *device) {
state = VALUE;
- break;
case VALUE:
if (strchr(NEWLINE, uevent[i])) {
uevent[i] = '\0';