• Michael Catanzaro's avatar
    uri-tester: Fix cache lookups when URI is not matched · d7fefdec
    Michael Catanzaro authored
    This regressed in e17dc362.
    g_hash_table_lookup() cannot distinguish between a missing value and a
    NULL value. We are storing a NULL pointer (GINT_TO_POINTER (FALSE)) to
    indicate that the URL is not a match, so the end result is that instead
    of a cache hit indicating we should return FALSE, we instead get a cache
    miss and then have to manually determine that we need to return FALSE.
    
    This should be a performance fix only, it should not affect correctness.
    
    Fixes #37
    d7fefdec
Name
Last commit
Last update
..
resources Loading commit data...
ephy-uri-tester.c Loading commit data...
ephy-uri-tester.h Loading commit data...
ephy-web-extension-main.c Loading commit data...
ephy-web-extension.c Loading commit data...
ephy-web-extension.h Loading commit data...
ephy-web-overview-model.c Loading commit data...
ephy-web-overview-model.h Loading commit data...
meson.build Loading commit data...