From 336144afd78b6154dba71442832037651da8f692 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 22 Dec 2017 15:09:29 +0000 Subject: [PATCH] Sanitise loaded values on PersistantConfig --- qrenderdoc/Code/Interface/PersistantConfig.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qrenderdoc/Code/Interface/PersistantConfig.cpp b/qrenderdoc/Code/Interface/PersistantConfig.cpp index 9503630ef..da0b01f99 100644 --- a/qrenderdoc/Code/Interface/PersistantConfig.cpp +++ b/qrenderdoc/Code/Interface/PersistantConfig.cpp @@ -275,6 +275,9 @@ bool PersistantConfig::Load(const rdcstr &filename) for(RemoteHost host : RemoteHostList) { + if(host.hostname.isEmpty()) + continue; + RemoteHosts.push_back(new RemoteHost(host)); if(host.IsLocalhost())