shadowing

This commit is contained in:
iceman1001 2019-04-07 16:34:21 +02:00
parent 03b44b324b
commit 9eba3a849a

View file

@ -287,11 +287,9 @@ int WAI_PREFIX(getModulePath)(char *out, int capacity, int *dirname_length) {
memcpy(out, resolved, length);
if (dirname_length) {
int i;
for (i = length - 1; i >= 0; --i) {
if (out[i] == '/') {
*dirname_length = i;
for (int j = length - 1; j >= 0; --j) {
if (out[j] == '/') {
*dirname_length = j;
break;
}
}