aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--uzbl.c6
1 files changed, 4 insertions, 2 deletions
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 -- */