ovsdb-idl: Check if row->written is valid.
authorJesse Gross <jesse@nicira.com>
Thu, 24 Jun 2010 22:31:18 +0000 (15:31 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 24 Jun 2010 22:48:03 +0000 (15:48 -0700)
commit35c2ce9849765d933aa1a825800c5ed5954d3736
tree8d9234812b95c2c6c16d58500115ff3f888d2e7e
parentf8d739a9fa1c1223f0b2c88fd3f0ed47be69bf65
ovsdb-idl: Check if row->written is valid.

Commit cde3f1 "ovsdb-idl: Drop unnecessary allocation from
ovsdb_idl_txn_insert()." does lazy allocation of row->written
on the assumption that ovsdb_idl_txn_write() will handle it.
However, this isn't the case for empty rows created by something
like "ovs-vsctl init" so add a check before reading the bitfield.
lib/ovsdb-idl.c