summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <none@none>2012-08-27 01:21:11 +0200
committerportix <none@none>2012-08-27 01:21:11 +0200
commita0e0914ddb22554a8bf14ef7141dbc497e820be7 (patch)
tree5329bc74dbbefc662da4072da3eb60e9418e1809 /src
parentaa261c53b5d23b4bd4f169dc0f292c4e7f476e8f (diff)
downloaddwb-a0e0914ddb22554a8bf14ef7141dbc497e820be7.zip
Ignore empty key-names in dwb:keys
Diffstat (limited to 'src')
-rw-r--r--src/html.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/html.c b/src/html.c
index 8fc10611..f226cb9b 100644
--- a/src/html.c
+++ b/src/html.c
@@ -357,6 +357,8 @@ html_keys_load_cb(WebKitWebView *wv, GParamSpec *p, HtmlTable *table) {
for (GList *l = dwb.keymap; l; l=l->next) {
km = l->data;
n = km->map->n;
+ if (n.first == NULL)
+ continue;
input = webkit_dom_document_get_element_by_id(doc, n.first);
if (input != NULL) {
mod = dwb_modmask_to_string(km->mod);