Ethereal

[Ethereal-dev] Re: [Ethereal-cvs] rev 17504: /trunk/gtk/: main.c
Google
 
Web Ethereal.com

Home | Introduction | Documentation | Lists | FAQ | Development | Wiki | Bugs

Ethereal-dev: March 2006


gerald@xxxxxxxxxxxx wrote:
User: gerald
Date: 2006/03/07 01:11 PM

Log:
 Fix Coverity run 12 CID 61:  In main_cf_cb_live_capture_update_started(),
 make sure capture_opts isn't NULL before we try to use it.

Could someone tell me, what this is for?

I only see another line of code added to make a dumb tool happy (which can't detect if the function is called with a NULL pointer) or a dumb line of code added to make a smart tool dumb (the function *is* probably called with a NULL pointer but we just don't get it).

Either way, the "fix" done isn't a good idea IMHO.

Regards, ULFL

Powered by MHonArc 2.6.10