From 355e981775d0d1d27d395a6491a944e6b60a2b2b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 6 Sep 2012 10:11:57 +0200 Subject: [PATCH] Fix 'no effect' check in timestamp print logic. Coverity 717437. --- src/log-httplog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log-httplog.c b/src/log-httplog.c index 941a6ff79f..098473fac0 100644 --- a/src/log-httplog.c +++ b/src/log-httplog.c @@ -180,7 +180,7 @@ static void LogHttpLogCustom(LogHttpLogThread *aft, htp_tx_t *tx, const struct t break; case LOG_HTTP_CF_TIMESTAMP: /* TIMESTAMP */ - if (httplog_ctx->cf_nodes[i]->data == '\0') { + if (httplog_ctx->cf_nodes[i]->data[0] == '\0') { strftime(buf, 62, TIMESTAMP_DEFAULT_FORMAT, timestamp); } else { strftime(buf, 62, httplog_ctx->cf_nodes[i]->data, timestamp);