Skip to content

Commit

Permalink
kernel: make for loop compatible (#1517)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jprimero15 authored Mar 24, 2024
1 parent dc5f911 commit 96242df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/throne_tracker.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ static int get_pkg_from_apk_path(char *pkg, const char *path)
const char *last_slash = NULL;
const char *second_last_slash = NULL;

for (int i = len - 1; i >= 0; i--) {
int i;
for (i = len - 1; i >= 0; i--) {
if (path[i] == '/') {
if (!last_slash) {
last_slash = &path[i];
Expand Down

0 comments on commit 96242df

Please sign in to comment.