From 644df595780f56b52e2dd5177ac74f95d3964c3f Mon Sep 17 00:00:00 2001 From: ellson Date: Wed, 4 May 2005 13:54:27 +0000 Subject: [PATCH] fix "keep quality sorted within type" bug --- lib/gvc/gvplugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gvc/gvplugin.c b/lib/gvc/gvplugin.c index 7839ecb08..ecb04f414 100644 --- a/lib/gvc/gvplugin.c +++ b/lib/gvc/gvplugin.c @@ -80,7 +80,7 @@ boolean gvplugin_install(GVC_t * gvc, api_t api, pnext = &((*pnext)->next); /* keep quality sorted within type and inster new duplicates ahead of old */ - while (*pnext && quality < (*pnext)->quality) + while (*pnext && strcmp(typestr, (*pnext)->typestr) == 0 && quality < (*pnext)->quality) pnext = &((*pnext)->next); plugin = malloc(sizeof(gv_plugin_t)); -- 2.40.0