summaryrefslogtreecommitdiff
path: root/src/gen_pfc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen_pfc.c')
-rw-r--r--src/gen_pfc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gen_pfc.c b/src/gen_pfc.c
index 405f080..2e38eb6 100644
--- a/src/gen_pfc.c
+++ b/src/gen_pfc.c
@@ -271,6 +271,9 @@ static int _get_bintree_levels(unsigned int syscall_cnt,
/* Only use a binary tree if requested */
return 0;
+ if (syscall_cnt == 0)
+ return 0;
+
do {
max_level = SYSCALLS_PER_NODE << i;
i++;