diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-03-23 18:54:58 +0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-03-26 11:56:22 +0100 |
commit | be3ce3014eacd66fa292fc9e4e6b3d3b0ef7de23 (patch) | |
tree | a8c9c08e6bf74507a0372638abd3b1c01ca53209 /src | |
parent | 1532227a19f9ec56b4b32f0bfa6806c55d6ce14c (diff) |
importd: simplify expression
Diffstat (limited to 'src')
-rw-r--r-- | src/import/importd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/importd.c b/src/import/importd.c index 3e70fe7330..018ca92534 100644 --- a/src/import/importd.c +++ b/src/import/importd.c @@ -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); |