klogd: fix small buglet in previous commit
This commit is contained in:
parent
2e7dc5d37b
commit
58a88916b9
@ -89,6 +89,7 @@ int klogd_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
|
|
||||||
/* klogctl buffer parsing modelled after code in dmesg.c */
|
/* klogctl buffer parsing modelled after code in dmesg.c */
|
||||||
/* Process each newline-terminated line in the buffer */
|
/* Process each newline-terminated line in the buffer */
|
||||||
|
start = log_buffer;
|
||||||
while (1) {
|
while (1) {
|
||||||
char *newline = strchrnul(start, '\n');
|
char *newline = strchrnul(start, '\n');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user