From e5ee3aae0bac659a3a4867e1bfb33cc4b2609628 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Mon, 5 Jun 2017 19:13:48 +0200 Subject: [PATCH] F #5005: Do not load empty history records --- src/vm/History.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vm/History.cc b/src/vm/History.cc index 3f7d0b9bf6..cfc8e6989c 100644 --- a/src/vm/History.cc +++ b/src/vm/History.cc @@ -241,6 +241,11 @@ int History::select(SqlDB * db) unset_callback(); + if ( hostname.empty() ) + { + rc = -1; + } + if ( rc == 0 ) // Regenerate non-persistent data { non_persistent_data();