remember_connection(): Add assertion to silence bogus cppcheck warnings
authorFabian Keil <fk@fabiankeil.de>
Sat, 30 May 2020 07:20:16 +0000 (09:20 +0200)
committerFabian Keil <fk@fabiankeil.de>
Mon, 1 Jun 2020 08:11:46 +0000 (10:11 +0200)
commitbaaf5d0a1efd2eb231a93777019464c5b4cbe7b7
treedca08f97ff07f0e15989f807419257ba7589f092
parentc37490096dfe419ec75be82b1e0d69b295becb42
remember_connection(): Add assertion to silence bogus cppcheck warnings

     gateway.c:221:23: error: Array 'reusable_connection[100]' accessed at index 100, which is out of bounds. [arrayIndexOutOfBounds]
        reusable_connection[slot].host = strdup_or_die(connection->host);
                           ^
     gateway.c:198:4: note: After for loop, slot has value 100
        for (slot = 0; slot < SZ(reusable_connection); slot++)
        ^
     [...]
gateway.c