summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-07-08 21:26:57 +0200
committerBenjamin Otte <otte@gnome.org>2009-07-08 21:26:57 +0200
commitd1233b68a759ceb32642001ad7e4a8467939e8a3 (patch)
tree97fd210b544375545e43f38dd2596fca72597bdd
parentf18f7da25030e022abab3bcb9b2a89edf3eeef3a (diff)
Initialize variables inside the loop, where it should beHEADmaster
-rw-r--r--ephy-history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ephy-history.c b/ephy-history.c
index f0aad06..a51e689 100644
--- a/ephy-history.c
+++ b/ephy-history.c
@@ -220,10 +220,10 @@ custom_function_markup (sqlite3_context *context,
}
string = g_string_new ("");
- current = end = 0;
for (i = 1; i < argc; i++)
{
const char *argument = (const char *) sqlite3_value_text (argv[1]);
+ current = end = 0;
if (i > 1)
g_string_append_c (string, '\n');
if (!g_regex_match (regex,