From eb389d5c390969b17d433d7a8710d87aa8b55a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Wed, 30 Aug 2017 09:32:03 +0300 Subject: Add missing {} to silence a compiler warning This is not affecting correctness; delete NULL is a valid operation. --- storage/spider/spd_db_conn.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'storage/spider') diff --git a/storage/spider/spd_db_conn.cc b/storage/spider/spd_db_conn.cc index 495420dad32..2406b66a84a 100644 --- a/storage/spider/spd_db_conn.cc +++ b/storage/spider/spd_db_conn.cc @@ -4130,8 +4130,10 @@ void spider_db_discard_multiple_result( if (!conn->db_conn->cmp_request_key_to_snd(&request_key)) break; if ((result = conn->db_conn->use_result(&request_key, &error_num))) + { result->free_result(); delete result; + } } while (!conn->db_conn->next_result()); DBUG_VOID_RETURN; } -- cgit v1.2.1