From 743eeb21e981920a339d5d2f24b301c3d49da6ac Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 27 Mar 2002 13:05:14 +0000 Subject: [PATCH] style improvement for checking whether the result of an assignment was NULL Submitted by: Sander Striker git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94220 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 2ec4a734c2..35ef816ed2 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1035,7 +1035,7 @@ static void basic_http_header(request_rec *r, apr_bucket_brigade *bb, /* keep a previously set server header (possibly from proxy), otherwise * generate a new server header */ - if ((server = apr_table_get(r->headers_out, "Server"))) { + if ((server = apr_table_get(r->headers_out, "Server")) != NULL) { form_header_field(&h, "Server", server); } else { -- 2.40.0