git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ovsdb: Fix inverted logic in ovsdb_open().
[sliver-openvswitch.git]
/
ovsdb
/
ovsdb.c
diff --git
a/ovsdb/ovsdb.c
b/ovsdb/ovsdb.c
index
1a4b6d8
..
6d0f131
100644
(file)
--- a/
ovsdb/ovsdb.c
+++ b/
ovsdb/ovsdb.c
@@
-204,7
+204,7
@@
ovsdb_open(const char *file_name, bool read_only, struct ovsdb **dbp)
}
json_destroy(json);
- db = ovsdb_create(read_only ?
file : NULL
, schema);
+ db = ovsdb_create(read_only ?
NULL : file
, schema);
while ((error = ovsdb_file_read(file, &json)) == NULL && json) {
struct ovsdb_txn *txn;