mirror of
https://github.com/systemd/systemd.git
synced 2025-01-06 00:24:19 +08:00
importd: simplify expression
This commit is contained in:
parent
1532227a19
commit
be3ce3014e
@ -246,7 +246,7 @@ static void transfer_send_logs(Transfer *t, bool flush) {
|
||||
n = strndup(t->log_message, e - t->log_message);
|
||||
|
||||
/* Skip over NUL and newlines */
|
||||
while (e < t->log_message + t->log_message_size && (*e == 0 || *e == '\n'))
|
||||
while ((e < t->log_message + t->log_message_size) && (*e == 0 || *e == '\n'))
|
||||
e++;
|
||||
|
||||
memmove(t->log_message, e, t->log_message + sizeof(t->log_message) - e);
|
||||
|
Loading…
Reference in New Issue
Block a user