--- lib/ephy-profile-migration.c 2010-04-02 18:17:25.000000000 +0200 +++ lib/ephy-profile-migration.c-gil 2010-10-05 23:46:44.000000000 +0200 @@ -193,7 +193,10 @@ while (lines[end] && !g_str_equal (lines[end], ".")) end++; - i = end + 1; + if (lines[end]) + i = end + 1; + else + i = end; /* A block has at least five lines */ if (end - begin < 5)