From: Uwe Hermann Date: Wed, 8 Mar 2017 18:31:22 +0000 (+0100) Subject: sr_usb_dev_inst_new(): Allow NULL as argument. X-Git-Tag: libsigrok-0.5.0~93 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=5801ce7840c72775fbcfaf39e0587f767f070efd sr_usb_dev_inst_new(): Allow NULL as argument. (documentation fix, the function always handled NULL fine) --- diff --git a/src/device.c b/src/device.c index 71221433..a8f6f2b4 100644 --- a/src/device.c +++ b/src/device.c @@ -409,7 +409,8 @@ SR_PRIV struct sr_usb_dev_inst *sr_usb_dev_inst_new(uint8_t bus, /** * Free struct sr_usb_dev_inst * allocated by sr_usb_dev_inst(). * - * @param usb The struct sr_usb_dev_inst * to free. Must not be NULL. + * @param usb The struct sr_usb_dev_inst * to free. If NULL, this + * function does nothing. * * @private */