summaryrefslogtreecommitdiffhomepage
path: root/modutils
diff options
context:
space:
mode:
Diffstat (limited to 'modutils')
-rw-r--r--modutils/modprobe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index 84a2d7686..3ac5a81a5 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -443,10 +443,8 @@ static struct dep_t *build_dep(void)
/* It's a dep description continuation */
p = line_buffer;
- p = skip_whitespace(p);
-
/* p points to the first dependable module; if NULL, no dependable module */
- if (p && *p) {
+ if (p && (p = skip_whitespace(p))[0] != '\0') {
char *end = &line_buffer[l-1];
const char *deps;
char *dep;