X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbackend.c;h=613de246a0298ae76e4e829aa01d8a3b9aab8e8d;hb=c442ffda0fc6fa9bc3c5397a21ef1d04f01a64a1;hp=b05e8d97a5bf7e817a33fbf741be642127d3b7c7;hpb=032da34b786333a1af811235c5cf29855479f0b6;p=libsigrok.git diff --git a/src/backend.c b/src/backend.c index b05e8d97..613de246 100644 --- a/src/backend.c +++ b/src/backend.c @@ -79,10 +79,10 @@ * * Initializing and shutting down libsigrok. * - * Before using any of the libsigrok functionality (except - * sr_log_loglevel_set() and sr_log_opts_set()), sr_init() must - * be called to initialize the library, which will return a struct sr_context - * when the initialization was successful. + * Before using any of the libsigrok functionality (except for + * sr_log_loglevel_set()), sr_init() must be called to initialize the + * library, which will return a struct sr_context when the initialization + * was successful. * * When libsigrok functionality is no longer needed, sr_exit() should be * called, which will (among other things) free the struct sr_context. @@ -432,7 +432,9 @@ SR_API int sr_init(struct sr_context **ctx) context = NULL; ret = SR_OK; +#ifdef HAVE_LIBUSB_1_0 done: +#endif g_free(context); return ret; }