You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jf...@apache.org on 2015/08/19 13:46:23 UTC

svn commit: r1696565 - /httpd/httpd/trunk/modules/http2/h2_io_set.c

Author: jfclere
Date: Wed Aug 19 11:46:23 2015
New Revision: 1696565

URL: http://svn.apache.org/r1696565
Log:
keep the C89-ers happy. Submitted by Norm (normw@gknw.net).

Modified:
    httpd/httpd/trunk/modules/http2/h2_io_set.c

Modified: httpd/httpd/trunk/modules/http2/h2_io_set.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/h2_io_set.c?rev=1696565&r1=1696564&r2=1696565&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http2/h2_io_set.c (original)
+++ httpd/httpd/trunk/modules/http2/h2_io_set.c Wed Aug 19 11:46:23 2015
@@ -67,12 +67,13 @@ h2_io *h2_io_set_get(h2_io_set *sp, int
     /* we keep the array sorted by id, so lookup can be done
      * by bsearch.
      */
+    h2_io **ps;
     h2_io key;
     h2_io *pkey = &key;
 
     memset(&key, 0, sizeof(key));
     key.id = stream_id;
-    h2_io **ps = bsearch(&pkey, sp->list->elts, sp->list->nelts, 
+    ps = bsearch(&pkey, sp->list->elts, sp->list->nelts, 
                          sp->list->elt_size, h2_stream_id_cmp);
     return ps? *ps : NULL;
 }