1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

udev: properly detect reference to unexisting part of PROGRAM's result

This commit is contained in:
Lukas Nykryn 2014-02-24 17:06:21 +01:00 committed by Kay Sievers
parent 93570bd7ed
commit 66390abefa
Notes: Zbigniew Jędrzejewski-Szmek 2014-04-07 10:48:58 -04:00
Backport: bugfix

View File

@ -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");