From 76f105d9be03588c2d5ec0b94ff769a1d269f2e4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 16 Mar 2010 12:42:40 -0700 Subject: [PATCH] ovsdb: Always set *dbp to null on failure in ovsdb_file_open__(). Found via inspection. I do not know that this fixes a real bug. --- ovsdb/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ovsdb/file.c b/ovsdb/file.c index c61d5caa..0c842727 100644 --- a/ovsdb/file.c +++ b/ovsdb/file.c @@ -111,6 +111,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) { -- 2.30.2