X-Git-Url: http://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=decode.c;fp=decode.c;h=b3d9bb2bd4e8f3a8f5346a9728da65fed6e9b7b0;hp=fff1dee8577fd3e84844226e65bd08fa76676620;hb=11e554c26dc1e8e43b6def4a85ffe22658e06bbf;hpb=d6ebfaa8b6ceaf6f6b07c7d115e40fc3a7fde0cf diff --git a/decode.c b/decode.c index fff1dee..b3d9bb2 100644 --- a/decode.c +++ b/decode.c @@ -358,8 +358,9 @@ int setup_pd_annotations(char *opt_pd_annotations) } } else { /* No class specified: show all of them. */ - g_hash_table_insert(pd_ann_visible, g_strdup(dec_id), - g_slist_append(NULL, GINT_TO_POINTER(-1))); + ann_class = -1; + l_ann = g_slist_append(NULL, GINT_TO_POINTER(ann_class)); + g_hash_table_insert(pd_ann_visible, g_strdup(dec_id), l_ann); g_debug("cli: Showing all annotation classes for protocol " "decoder %s.", dec_id); }