From 8e9a25aa963d8c237e929b300898cd18b88fa42f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 12 Sep 2017 14:06:28 -0700 Subject: [PATCH] ircd::db: Default init invalid row values. --- include/ircd/db/json.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ircd/db/json.h b/include/ircd/db/json.h index 7bde2483a..fb442ccdb 100644 --- a/include/ircd/db/json.h +++ b/include/ircd/db/json.h @@ -77,6 +77,8 @@ ircd::db::set(json::tuple &tuple, for(auto &cell : row) if(cell.valid()) json::set(tuple, cell.col(), cell.val()); + else + json::set(tuple, cell.col(), string_view{}); return tuple; }