From: Bert Vermeulen Date: Wed, 20 Aug 2014 15:33:09 +0000 (+0200) Subject: output: Fix options enumeration. Again. X-Git-Tag: libsigrok-0.4.0~1132 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=fdefc40aec016e0395a6f46d96fd4931a0ec9f45;p=libsigrok.git output: Fix options enumeration. Again. --- diff --git a/src/output/output.c b/src/output/output.c index 9a6d6679..a2d7c510 100644 --- a/src/output/output.c +++ b/src/output/output.c @@ -170,7 +170,7 @@ SR_API const struct sr_option **sr_output_options_get(const struct sr_output_mod mod_opts = o->options(); - for (size = 1; mod_opts[size].id; size++) + for (size = 0; mod_opts[size].id; size++) ; opts = g_malloc((size + 1) * sizeof(struct sr_option *));