diff options
author | Yifeng Sun <pkusunyifeng@gmail.com> | 2018-09-27 14:31:40 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-09-27 14:44:10 -0700 |
commit | 73f0bb65c12f379fbf132150011738b78afe5ec2 (patch) | |
tree | 837f59f74bd64258bf271416c36054c0aa1f84bb | |
parent | 731cb84efe872067d1553f54235ee399a8c926bd (diff) | |
download | openvswitch-73f0bb65c12f379fbf132150011738b78afe5ec2.tar.gz |
ovsdb-client: Fix a bug that uses wrong index
This patch fixes the incorrect index to argv.
Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
-rw-r--r-- | ovsdb/ovsdb-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ovsdb/ovsdb-client.c b/ovsdb/ovsdb-client.c index 8d2063041..6a286581c 100644 --- a/ovsdb/ovsdb-client.c +++ b/ovsdb/ovsdb-client.c @@ -1072,9 +1072,9 @@ do_dump(struct jsonrpc *rpc, const char *database, for (i = 1; i < argc; i++) { node = shash_find(&tschema->columns, argv[i]); if (!node) { - ovs_fatal(0, "Table \"%s\" has no column %s.", argv[0], argv[1]); + ovs_fatal(0, "Table \"%s\" has no column %s.", argv[0], argv[i]); } - shash_add(&custom_columns, argv[1], node->data); + shash_add(&custom_columns, argv[i], node->data); } } else { tables = shash_sort(&schema->tables); |