Browse Source

[2040] cppcheck warnings removed in mysql_ubench

Tomek Mrugalski 12 years ago
parent
commit
5c8635b42e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/tools/dhcp-ubench/mysql_ubench.cc

+ 2 - 2
tests/tools/dhcp-ubench/mysql_ubench.cc

@@ -406,7 +406,7 @@ void MySQL_uBenchmark::searchLease4Test() {
 
             // 4th parameter: Client-id
             response[3].buffer_type = MYSQL_TYPE_STRING;
-            response[3].buffer = client_id;
+            response[3].buffer = &client_id;
 
             // 5th parameter: valid-lifetime
             response[4].buffer_type = MYSQL_TYPE_LONG;
@@ -426,7 +426,7 @@ void MySQL_uBenchmark::searchLease4Test() {
 
             // 9th parameter: hostname
             response[8].buffer_type = MYSQL_TYPE_STRING;
-            response[8].buffer = hostname;
+            response[8].buffer = &hostname;
 
             // 10th parameter: fqdn_fwd
             response[9].buffer_type = MYSQL_TYPE_TINY;