Skip to content

Commit

Permalink
Fix warning due some archs only having the asm plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed Jan 17, 2024
1 parent b60e1ec commit b300bc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion librz/arch/analysis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b300bc4

Please sign in to comment.