tag: Use existing macro instead of constant.
[openvswitch] / ovsdb / ovsdb.c
index 5bbaddbd3810a99a0320af3253027ba40ed397d1..45683766c1c937a4e24dcca013bdd2d61e443e1f 100644 (file)
@@ -58,6 +58,10 @@ ovsdb_schema_destroy(struct ovsdb_schema *schema)
 {
     struct shash_node *node;
 
+    if (!schema) {
+        return;
+    }
+
     SHASH_FOR_EACH (node, &schema->tables) {
         ovsdb_table_schema_destroy(node->data);
     }