]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/fio/fio_ceph_objectstore.cc: fix uninitialized variables
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 12 Apr 2018 18:32:06 +0000 (20:32 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 13 Apr 2018 22:13:18 +0000 (00:13 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/fio/fio_ceph_objectstore.cc

index bc159c64dd0143918a1fb738331976f21bdd7973..197ac2675160bd18c865f0bab33aad5c33f6d16a 100644 (file)
@@ -504,8 +504,8 @@ int fio_ceph_os_getevents(thread_data* td, unsigned int min,
 {
   auto job = static_cast<Job*>(td->io_ops_data);
   unsigned int events = 0;
-  io_u* u;
-  unsigned int i;
+  io_u* u = NULL;
+  unsigned int i = 0;
 
   // loop through inflight ios until we find 'min' completions
   do {