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

(cherry picked from commit 66390abefa)
(cherry picked from commit e97bfdb851)
This commit is contained in:
Lukas Nykryn
2014-04-07 13:26:51 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 95e7995207
commit 7f102a597c
+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\n");