diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-02-10 11:08:27 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-02-11 10:35:28 -0800 |
| commit | b0ef0551167affac2c406fcdeb2b4130e359f32c (patch) | |
| tree | 2fa2f20b9211f2ae4560263c1b7e7a6f27dc8325 /ovsdb/ovsdb-server.c | |
| parent | 4869f1b170c1741fbc8f81123d0fe5fc1ba3a282 (diff) | |
| download | openvswitch-b0ef0551167affac2c406fcdeb2b4130e359f32c.tar.gz | |
ovsdb: Drop write-only variable.
Found by Clang (http://clang-analyzer.llvm.org).
Diffstat (limited to 'ovsdb/ovsdb-server.c')
| -rw-r--r-- | ovsdb/ovsdb-server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ovsdb/ovsdb-server.c b/ovsdb/ovsdb-server.c index 887751e50..03ebba171 100644 --- a/ovsdb/ovsdb-server.c +++ b/ovsdb/ovsdb-server.c @@ -124,14 +124,14 @@ static void query_db_remotes(const char *name_, const struct ovsdb *db, 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_table *table; const struct ovsdb_row *row; char *save_ptr = NULL; name = xstrdup(name_); - db_prefix = strtok_r(name, ":", &save_ptr); + strtok_r(name, ":", &save_ptr); /* "db:" */ table_name = strtok_r(NULL, ",", &save_ptr); column_name = strtok_r(NULL, ",", &save_ptr); if (!table_name || !column_name) { |
