From: Ben Pfaff Date: Tue, 16 Mar 2010 19:42:40 +0000 (-0700) Subject: ovsdb: Always set *dbp to null on failure in ovsdb_file_open__(). X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=76f105d9be03588c2d5ec0b94ff769a1d269f2e4;p=sliver-openvswitch.git 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. --- diff --git a/ovsdb/file.c b/ovsdb/file.c index c61d5caa6..0c8427274 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) {