summaryrefslogtreecommitdiff
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-02-23 15:28:11 +0100
commitf3feacef1793cc0addbffaad1fc321fbaca9f722 (patch)
tree01c7bb13c83565a2cb80c137e1ed4fb658b641e8
parent50df3343adf8e0764934f09438d8ccfaa6dc33e9 (diff)
Fix crash if resource name does not exist in the list.
-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)
{