summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 76229af..4edf601 100644
--- a/util.c
+++ b/util.c
@@ -251,7 +251,7 @@ typedef struct {
} QSortWithContext;
static int qsort_with_context_cmp(const void *a, const void *b, void *context) {
QSortWithContext *c = context;
- return c->compar(context, a, b);
+ return c->compar(c->context, a, b);
}
static void qsort_with_context(void *base, size_t nmemb, size_t size,
int (*compar)(void *, const void *, const void *),