Re: [gst-cvs] binary registry: comparing arrays against NULL is useless

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [gst-cvs] binary registry: comparing arrays against NULL is useless

Tim-Philipp Müller-2
On Thu, 2009-02-05 at 07:51 -0800, Stefan Kost wrote:

> commit c69a2628892dbbbec345847358921471f7479af5
> Author: Stefan Kost <[hidden email]>
> Date:   Thu Feb 5 15:56:19 2009 +0200
>
>     binary registry: comparing arrays against NULL is useless
>

So is &m->foo != NULL ...

Cheers
 -Tim



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [gst-cvs] binary registry: comparing arrays against NULL is useless

Stefan Sauer
Tim-Philipp Müller schrieb:

> On Thu, 2009-02-05 at 07:51 -0800, Stefan Kost wrote:
>
>  
>> commit c69a2628892dbbbec345847358921471f7479af5
>> Author: Stefan Kost <[hidden email]>
>> Date:   Thu Feb 5 15:56:19 2009 +0200
>>
>>     binary registry: comparing arrays against NULL is useless
>>
>>    
>
> So is &m->foo != NULL ...
>
> Cheers
>  -Tim
>
>
>  
Crap, you are right. Fixed in
b87960ae5d7ae1e45aed3712c0f507a4d7af73fd
. Just using
  if (m == NULL)
is enough

Stefan

> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel