From: William A. Rowe Jr Date: Mon, 10 Sep 2001 04:21:40 +0000 (+0000) Subject: I don't seriously expect this solves the segfault ... but it does make X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b6ade8dc4cbefc50d4a04cbf1b04ae7fb70b4df;p=thirdparty%2Fapache%2Fhttpd.git I don't seriously expect this solves the segfault ... but it does make the code more legible, and protects particularly ugly unset values. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@90979 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/mod_ssl.h b/mod_ssl.h index 4bdeb65942b..4ec3286e1ba 100644 --- a/mod_ssl.h +++ b/mod_ssl.h @@ -188,7 +188,7 @@ #define strIsEmpty(s) (s == NULL || s[0] == NUL) -#define cfgMerge(el,unset) new->el = add->el == unset ? base->el : add->el +#define cfgMerge(el,unset) new->el = (add->el == (unset)) ? base->el : add->el #define cfgMergeArray(el) new->el = apr_array_append(p, add->el, base->el) #define cfgMergeTable(el) new->el = apr_table_overlay(p, add->el, base->el) #define cfgMergeCtx(el) new->el = apr_table_overlay(p, add->el, base->el)