summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Mazieres <dm@uun.org>2014-01-30 03:28:01 -0800
committerDavid Mazieres <dm@uun.org>2014-01-30 03:28:01 -0800
commite46763186be8262831057ec32f5bcc350a5a4df8 (patch)
tree2112694f9d16c9f5e787628e8a95bf2983ce3010
parentc22f4b21821ffa4218211f0916fe6c58b68ca503 (diff)
hash_id_ was uninitialized
-rw-r--r--protocol.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocol.cc b/protocol.cc
index 425ce3b..797fdde 100644
--- a/protocol.cc
+++ b/protocol.cc
@@ -357,6 +357,7 @@ hash_lookup::create (const hash_info &rhi)
hi_.message_id = rhi.message_id;
hi_.hash_stamp = rhi.hash_stamp;
hi_.dirs.clear();
+ hash_id_ = sqlite3_last_insert_rowid(sqlite3_db_handle(makehash_.get()));
ok_ = true;
}