srzip: don't access non-existing option

The srzip output module dropped support for the "filename" option in
commit 37875f7506 on 2015-07-30, but still used to assign to slot
options[0] which clobbers the array's sentinel. Remove those accesses
to the non-existing option.
This commit is contained in:
Gerhard Sittig 2018-01-28 18:58:19 +01:00
parent 793e9963b8
commit 11e3a56380
1 changed files with 0 additions and 4 deletions

View File

@ -465,9 +465,6 @@ static struct sr_option options[] = {
static const struct sr_option *get_options(void)
{
if (!options[0].def)
options[0].def = g_variant_ref_sink(g_variant_new_string(""));
return options;
}
@ -476,7 +473,6 @@ static int cleanup(struct sr_output *o)
struct out_context *outc;
outc = o->priv;
g_variant_unref(options[0].def);
g_free(outc->analog_index_map);
g_free(outc->filename);
g_free(outc);