summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r--sys-utils/dmesg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index 8e7bb4b69..b3713a0a1 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -480,11 +480,10 @@ static int get_next_record(struct dmesg_control *ctl, struct dmesg_record *rec)
break;
}
}
+ if (begin < end && *begin == ' ')
+ begin++;
}
- if (begin < end && *begin == ' ')
- begin++;
-
rec->mesg = begin;
rec->mesg_size = end - begin;