summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/java-utils.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java-utils.c b/src/java-utils.c
index 6946761..5b36a9c 100644
--- a/src/java-utils.c
+++ b/src/java-utils.c
@@ -307,9 +307,10 @@ get_package_name_from_class_file (char *fname)
}
if (package != NULL) {
- for (i = length; (i >= 0) && (end == 0); i-- )
- if (package[i] == '/')
- end = i;
+ int j;
+ for (j = length; (j >= 0) && (end == 0); j--)
+ if (package[j] == '/')
+ end = j;
package = g_strndup (package, end);
}