diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-02-24 17:06:21 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-03-17 12:01:47 -0400 |
commit | 10e0d09f138b4e124cd1333e5d71051ea1a08103 (patch) | |
tree | 5bce1f5d978c8dbed04f778005b4b2ddc5ce5c5f | |
parent | 7b85b243b26a03744d297b4945d31131eb48e05c (diff) |
udev: properly detect reference to unexisting part of PROGRAM's result
-rw-r--r-- | src/udev/udev-event.c | 2 |
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"); |