X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=decode.c;fp=decode.c;h=0bf1d250bacb2063f5d28738a72083fd5db13b5c;hp=225162a45e4cde1238da788ec4e5c8754bd91f93;hb=172d2b302de1d973dd15add0184e90d336c953bc;hpb=6129707f9f9a13ba04eb2e6017197737428fa25a diff --git a/decode.c b/decode.c index 225162a..0bf1d25 100644 --- a/decode.c +++ b/decode.c @@ -271,6 +271,11 @@ static void map_pd_inst_channels(void *key, void *value, void *user_data) g_hash_table_iter_init(&iter, channel_map); while (g_hash_table_iter_next(&iter, &channel_id, &channel_target)) { + if (!channel_target) { + g_printerr("cli: Channel name for \"%s\" missing.\n", + (char *)channel_id); + continue; + } ch = find_channel(channel_list, channel_target); if (!ch) { g_printerr("cli: No channel with name \"%s\" found.\n",