]> granicus.if.org Git - apache/commitdiff
keep the C89-ers happy. Submitted by Norm (normw@gknw.net).
authorJean-Frederic Clere <jfclere@apache.org>
Wed, 19 Aug 2015 11:46:23 +0000 (11:46 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Wed, 19 Aug 2015 11:46:23 +0000 (11:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1696565 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_io_set.c

index 6a688b9a58156e20d865a80d450cf2cf2cb80488..91afde8f1f5e2c55f6b12a5fbecaa7797a2951d1 100644 (file)
@@ -67,12 +67,13 @@ h2_io *h2_io_set_get(h2_io_set *sp, int stream_id)
     /* 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;
 }