diff --git a/src/config/rcxml.c b/src/config/rcxml.c index eeb9d681..cb064fc0 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -646,7 +646,14 @@ fill_touch(char *nodename, char *content) if (!strcasecmp(nodename, "touch")) { current_touch = znew(*current_touch); wl_list_append(&rc.touch_configs, ¤t_touch->link); - } else if (!strcasecmp(nodename, "deviceName.touch")) { + return; + } + + if (!content) { + return; + } + + if (!strcasecmp(nodename, "deviceName.touch")) { xstrdup_replace(current_touch->device_name, content); } else if (!strcasecmp(nodename, "mapToOutput.touch")) { xstrdup_replace(current_touch->output_name, content);