[ovs-dev] [PATCH 1/4] ovsdb: Always set *dbp to null on failure in ovsdb_file_open__().
Ben Pfaff
blp at nicira.com
Tue Mar 16 22:24:36 UTC 2010
Found via inspection. I do not know that this fixes a real bug.
---
ovsdb/file.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/ovsdb/file.c b/ovsdb/file.c
index 65a535b..f5f8a5a 100644
--- a/ovsdb/file.c
+++ b/ovsdb/file.c
@@ -109,6 +109,7 @@ ovsdb_file_open__(const char *file_name,
struct json *json;
struct ovsdb *db;
+ *dbp = NULL;
open_mode = read_only ? OVSDB_LOG_READ_ONLY : OVSDB_LOG_READ_WRITE;
error = ovsdb_log_open(file_name, open_mode, -1, &log);
if (error) {
--
1.6.6.1
More information about the dev
mailing list