From 9c372a283433c453fa7c096677ba673571d9cfdc Mon Sep 17 00:00:00 2001 From: Evgeny Grablyk Date: Tue, 28 Apr 2009 22:45:59 +0300 Subject: Small fix. --- uzbl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'uzbl.c') diff --git a/uzbl.c b/uzbl.c index fae9d5f..4c80f6c 100644 --- a/uzbl.c +++ b/uzbl.c @@ -216,8 +216,10 @@ commands_hash(void) unsigned int i = 0; commands = g_hash_table_new(g_str_hash, g_str_equal); - while(cmdlist[i].command != NULL) - g_hash_table_insert(commands, cmdlist[i++].command, &cmdlist[i]); + while(cmdlist[i].command != NULL){ + g_hash_table_insert(commands, cmdlist[i].command, &cmdlist[i]); + i++; + } } /* -- CORE FUNCTIONS -- */ -- cgit v1.2.3