Skip to content

Commit

Permalink
Merged changeset 948:923323444178 from default branch: valgrind sorti…
Browse files Browse the repository at this point in the history
…ng fix.
  • Loading branch information
icculus committed Feb 28, 2009
1 parent ab4e94c commit 42eb076
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion physfs.c
Expand Up @@ -214,7 +214,8 @@ static void __PHYSFS_quick_sort(void *a, PHYSFS_uint32 lo, PHYSFS_uint32 hi,
break;
swapfn(a, i, j);
} /* while */
swapfn(a, i, hi-1);
if (i != (hi-1))
swapfn(a, i, hi-1);
__PHYSFS_quick_sort(a, lo, j, cmpfn, swapfn);
__PHYSFS_quick_sort(a, i+1, hi, cmpfn, swapfn);
} /* else */
Expand Down

0 comments on commit 42eb076

Please sign in to comment.