From af5c323e932a20b856e6445a91c24809a5d6e271 Mon Sep 17 00:00:00 2001 From: regnat Date: Thu, 3 Jun 2021 15:28:04 +0200 Subject: [PATCH] Make the root symbol more telling in the DB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I spent a few minutes trying to understand why I had a field with an empty symbol, until I realise that it’s because that was the symbol for the root element. Now that shouldn’t happen anymore --- src/libexpr/tree-cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/tree-cache.cc b/src/libexpr/tree-cache.cc index 08fd9e59a..2b7f783fb 100644 --- a/src/libexpr/tree-cache.cc +++ b/src/libexpr/tree-cache.cc @@ -209,7 +209,7 @@ Cache::Cache(const Hash & useCache, SymbolTable & symbols) : db(std::make_shared(useCache)) , symbols(symbols) - , rootSymbol(symbols.create("")) + , rootSymbol(symbols.create("%root%")) { }