Store specific client ops in the fio_client structure
[fio.git] / init.c
diff --git a/init.c b/init.c
index fd61c685e7abbcbeef3d077e1be8ab68bf767dbb..0b57a9c238565e27be1cd0d3454732a3c1b0f135 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1569,7 +1569,7 @@ int parse_cmd_line(int argc, char *argv[])
                                exit_val = 1;
                                break;
                        }
-                       if (fio_client_add(optarg, &cur_client)) {
+                       if (fio_client_add(&fio_client_ops, optarg, &cur_client)) {
                                log_err("fio: failed adding client %s\n", optarg);
                                do_exit++;
                                exit_val = 1;