From ca4c3e6006c112503fe9be957353b4aa3bddfe69 Mon Sep 17 00:00:00 2001
From: Bent Bisballe Nyeng <deva@aasimon.org>
Date: Sun, 23 Feb 2020 15:28:11 +0100
Subject: Fix crash if resource name does not exist in the list.

---
 plugingui/resource.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugingui/resource.cc b/plugingui/resource.cc
index b70f84a..3462317 100644
--- a/plugingui/resource.cc
+++ b/plugingui/resource.cc
@@ -77,7 +77,7 @@ Resource::Resource(const std::string& name)
 
 		// Find internal resource in rc_data.
 		const rc_data_t* p = rc_data;
-		while(p->name) // last entry in rc_data has the name := ""
+		while(p->name[0] != '\0') // last entry in rc_data has the name := ""
 		{
 			if(name == p->name)
 			{
-- 
cgit v1.2.3