r12862 tlsa - in /trunk/netsurf/utils: nsurl.c nsurl.h

Martin Bazley martin.bazley at blueyonder.co.uk
Fri Sep 23 00:13:30 BST 2011


The following bytes were arranged on 22 Sep 2011 by netsurf at semichrome.net:

> +nsurl *nsurl_ref(nsurl *url)
>  {
> +       assert(url != NULL);
> +
> +       url->count++;

[snip]

> +void nsurl_unref(nsurl *url)
> +{
> +       if (--url->count > 0)
> +               return;
> +
>          assert(url != NULL);

Shouldn't both asserts come first?

-- 
  __<^>__   "Your pet, our passion." - Purina
 / _   _ \  "Your potential, our passion." - Microsoft, a few months later
( ( |_| ) )
 \_>   <_/  ======================= Martin Bazley ==========================



More information about the netsurf-dev mailing list