mirror of
https://github.com/openvswitch/ovs
synced 2025-09-01 14:55:18 +00:00
ovsdb: Drop write-only variable.
Found by Clang (http://clang-analyzer.llvm.org).
This commit is contained in:
@@ -124,14 +124,14 @@ static void
|
|||||||
query_db_remotes(const char *name_, const struct ovsdb *db,
|
query_db_remotes(const char *name_, const struct ovsdb *db,
|
||||||
struct shash *remotes)
|
struct shash *remotes)
|
||||||
{
|
{
|
||||||
char *name, *db_prefix, *table_name, *column_name;
|
char *name, *table_name, *column_name;
|
||||||
const struct ovsdb_column *column;
|
const struct ovsdb_column *column;
|
||||||
const struct ovsdb_table *table;
|
const struct ovsdb_table *table;
|
||||||
const struct ovsdb_row *row;
|
const struct ovsdb_row *row;
|
||||||
char *save_ptr = NULL;
|
char *save_ptr = NULL;
|
||||||
|
|
||||||
name = xstrdup(name_);
|
name = xstrdup(name_);
|
||||||
db_prefix = strtok_r(name, ":", &save_ptr);
|
strtok_r(name, ":", &save_ptr); /* "db:" */
|
||||||
table_name = strtok_r(NULL, ",", &save_ptr);
|
table_name = strtok_r(NULL, ",", &save_ptr);
|
||||||
column_name = strtok_r(NULL, ",", &save_ptr);
|
column_name = strtok_r(NULL, ",", &save_ptr);
|
||||||
if (!table_name || !column_name) {
|
if (!table_name || !column_name) {
|
||||||
|
Reference in New Issue
Block a user