diff --git a/librz/arch/analysis.c b/librz/arch/analysis.c index 995fcd14460..4dd11752691 100644 --- a/librz/arch/analysis.c +++ b/librz/arch/analysis.c @@ -130,7 +130,9 @@ RZ_API RzAnalysis *rz_analysis_new(void) { analysis->plugins = rz_list_new(); if (analysis->plugins) { for (i = 0; i < RZ_ARRAY_SIZE(analysis_static_plugins); i++) { - rz_analysis_plugin_add(analysis, analysis_static_plugins[i]->p_analysis); + if (analysis_static_plugins[i]->p_analysis) { + rz_analysis_plugin_add(analysis, analysis_static_plugins[i]->p_analysis); + } } } analysis->ht_global_var = ht_pp_new(NULL, global_kv_free, NULL);