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

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