summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-02-23 15:28:11 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2020-03-07 19:06:59 +0100
commitca4c3e6006c112503fe9be957353b4aa3bddfe69 (patch)
tree006b1f50a767a1f722d41b4bac483164eebf9128 /plugingui
parent365c6da71716c90730a5ca714edda264d0d6f93c (diff)
Fix crash if resource name does not exist in the list.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/resource.cc2
1 files changed, 1 insertions, 1 deletions
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)
{