Hi, On Mon, Nov 10, 2014 at 08:17:07AM -0800, Vincent Palatin wrote: > When libusb cannot access a device, libusb_get_port_path() will return > an error. Check the return code rather than doing invalid pointer > operations (out-of-bound read). > > Avoid segfaults at sigrok-cli startup on my setup where some USB devices are > not accessible and also make Valgrind happier. > > Signed-off-by: Vincent Palatin <[email protected]>
Thanks, merged with a minor fix in the commit messages. Uwe. -- http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

