diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/udev/udev-event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index 0b3ade082c..5998be2f77 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -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"); |