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
committerKay Sievers <kay@vrfy.org>2014-03-11 13:18:13 +0100
commit66390abefae6530981446970ffd7ff4d1085e254 (patch)
tree502affe0bfabe30c483d35fab473554b508d431f /src/udev/udev-event.c
parent93570bd7ed31aad336c1a0a88ba08159c9c8e4cc (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 0b3ade082c..5998be2f77 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -254,6 +254,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");