serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astie...@apache.org
Subject svn commit: r1709162 - /serf/trunk/buckets/ssl_buckets.c
Date Sat, 17 Oct 2015 13:25:56 GMT
Author: astieger
Date: Sat Oct 17 13:25:56 2015
New Revision: 1709162

URL: http://svn.apache.org/viewvc?rev=1709162&view=rev
Log:
Follow-up to r1708599, fix warning about assignment used as bool

* buckets/ssl_buckets.c
  (serf_ssl_negotiate_protocol): wrap statement in parentheses

Modified:
    serf/trunk/buckets/ssl_buckets.c

Modified: serf/trunk/buckets/ssl_buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/buckets/ssl_buckets.c?rev=1709162&r1=1709161&r2=1709162&view=diff
==============================================================================
--- serf/trunk/buckets/ssl_buckets.c (original)
+++ serf/trunk/buckets/ssl_buckets.c Sat Oct 17 13:25:56 2015
@@ -1662,7 +1662,7 @@ apr_status_t serf_ssl_negotiate_protocol
 
     at = raw_header = apr_palloc(subpool, raw_len);
 
-    while (next = strchr(protocols, ',')) {
+    while ((next = strchr(protocols, ','))) {
         len = (next - protocols);
 
         if (len > 255) {



Mime
View raw message