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

(cherry picked from commit 66390abefa)
This commit is contained in:
Lukas Nykryn
2014-04-07 10:48:50 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 950be0cb76
commit e97bfdb851
+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");