summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_ssl.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-08 05:54:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-08 05:54:29 +0000
commit6e19fc30b1b49540b9968b141872bc227be8bdd6 (patch)
tree8bca2f5e0d95685f0afbb7b4cdd9e53196cc00ec /ext/openssl/ossl_ssl.c
parent0d65138c81e22dd70650389a173b528e97ba8ae2 (diff)
suppress warnings
* ext/date/date_parse.c (date_zone_to_diff): suppress parentheses warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_ssl.c')
-rw-r--r--ext/openssl/ossl_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
index 8d057b7..09d8dd2 100644
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -589,7 +589,7 @@ ssl_npn_select_cb_common(VALUE cb, const unsigned char **out, unsigned char *out
VALUE protocols = rb_ary_new();
/* The format is len_1|proto_1|...|len_n|proto_n\0 */
- while (l = *in++) {
+ while ((l = *in++) != '\0') {
VALUE protocol;
if (l > inlen) {
ossl_raise(eSSLError, "Invalid protocol name list");