summaryrefslogtreecommitdiff
path: root/src/udev/udev-event.c
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-02-24 17:06:21 +0100
committerAnthony G. Basile <blueness@gentoo.org>2014-03-17 12:01:47 -0400
commit10e0d09f138b4e124cd1333e5d71051ea1a08103 (patch)
tree5bce1f5d978c8dbed04f778005b4b2ddc5ce5c5f /src/udev/udev-event.c
parent7b85b243b26a03744d297b4945d31131eb48e05c (diff)
udev: properly detect reference to unexisting part of PROGRAM's result
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r--src/udev/udev-event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index c4cb686821..91c34f6265 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -256,6 +256,8 @@ subst:
cpos++;
while (isspace(cpos[0]))
cpos++;
+ if (cpos[0] == '\0')
+ break;
}
if (i > 0) {
log_error("requested part of result string not found");