[Swfdec-commits] src/plugin.c
Pekka Lampila
medar at kemper.freedesktop.org
Tue Feb 19 12:04:58 PST 2008
src/plugin.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 499c4547b12a80c745a0789751706e764a37b1f5
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Tue Feb 19 22:02:36 2008 +0200
Nested for loops used the same index variable, oops...
diff --git a/src/plugin.c b/src/plugin.c
index 3b3b70b..1f758ee 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -237,11 +237,11 @@ plugin_new (NPMIMEType mime_type, NPP instance,
{ "br", SWFDEC_ALIGNMENT_BOTTOM_RIGHT }
};
SwfdecAlignment align = SWFDEC_ALIGNMENT_CENTER;
- guint i;
+ guint j;
- for (i = 0; i < G_N_ELEMENTS (possibilities); i++) {
- if (g_ascii_strcasecmp (argv[i], possibilities[i].name) == 0) {
- align = possibilities[i].align;
+ for (j = 0; j < G_N_ELEMENTS (possibilities); j++) {
+ if (g_ascii_strcasecmp (argv[i], possibilities[j].name) == 0) {
+ align = possibilities[j].align;
break;
}
}
More information about the Swfdec-commits
mailing list