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: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76f105d9be03588c2d5ec0b94ff769a1d269f2e4;p=openvswitch 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 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) {