I don't think it's possible that error was used uninitialized, but some gcc
version seems to think so.
static void redis_conn_input(struct connection *_conn)
{
struct redis_connection *conn = (struct redis_connection *)_conn;
- const char *error;
+ const char *error = NULL;
int ret;
switch (i_stream_read(_conn->input)) {
}
while ((ret = redis_conn_input_more(conn, &error)) > 0) ;
- if (ret < 0)
+ if (ret < 0) {
+ i_assert(error != NULL);
redis_disconnected(conn, error);
+ }
}
static void redis_conn_connected(struct connection *_conn, bool success)