diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2014-09-01 14:40:01 +0000 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2014-09-01 14:40:01 +0000 |
commit | 2785b009e97471249eea741fd65269456bddec7e (patch) | |
tree | d8a1341e381f96776874d8b1b88edac4a2219ba3 /modules/loggers | |
parent | 266da2feb27a5be9d1c201e8720a53a83fcbadb0 (diff) | |
download | httpd-2785b009e97471249eea741fd65269456bddec7e.tar.gz |
Silent some cppcheck warnings.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1621806 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/loggers')
-rw-r--r-- | modules/loggers/mod_journald.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/loggers/mod_journald.c b/modules/loggers/mod_journald.c index c0cc9c3a31..14e6f76e5a 100644 --- a/modules/loggers/mod_journald.c +++ b/modules/loggers/mod_journald.c @@ -114,9 +114,9 @@ static void journald_log(apr_pool_t *pool, const char *log, /* Adds new entry to iovec if previous additions were successful. */ #define IOVEC_ADD_LEN(FORMAT, VAR, LEN) \ if (rv == APR_SUCCESS && iov_size < MAX_ENTRIES) { \ - if ((rv = iovec_add_entry(subpool, &iov[iov_size], FORMAT, LEN, VAR)) \ - == APR_SUCCESS) \ - iov_size++; \ + rv = iovec_add_entry(subpool, &iov[iov_size], FORMAT, LEN, VAR); \ + if (rv == APR_SUCCESS) \ + iov_size++; \ } #define IOVEC_ADD(FORMAT, VAR) IOVEC_ADD_LEN(FORMAT, VAR, -1) |