Fix update settings for wildcard zurls
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 16 Oct 2009 21:57:54 +0000 (23:57 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 16 Oct 2009 21:57:54 +0000 (23:57 +0200)
src/settings.c

index 55cd512..db5d7ce 100644 (file)
@@ -362,7 +362,7 @@ static void update_database(void *context, struct database *db)
                 // target-specific value trumps wildcard. Delete.
                 *sp = (*sp)->next; // unlink.....
             }
-            else if (!zurl_wildcard((*sp)->target))
+            else if (zurl_wildcard((*sp)->target) < zurl_wildcard(set->target))
                 // Db already contains higher-priority setting. Abort search
                 break;
             else