diff --git a/src/libsysprof/sysprof-callgraph.c b/src/libsysprof/sysprof-callgraph.c index 3b4c55a2..c309e1e4 100644 --- a/src/libsysprof/sysprof-callgraph.c +++ b/src/libsysprof/sysprof-callgraph.c @@ -373,6 +373,8 @@ sysprof_callgraph_add_traceable (SysprofCallgraph *self, symbols, stack_depth, &final_context); + if (n_symbols == 0) + return; g_assert (n_symbols <= stack_depth);