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

This commit is contained in:
Lukas Nykryn
2014-03-11 13:18:13 +01:00
committed by Kay Sievers
parent 93570bd7ed
commit 66390abefa
+2
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");