As the list bpf->maplist contains unique pointers, break when a
map is found.

Signed-off-by: Luis Galdos <[email protected]>
---
 bpf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bpf.c b/bpf.c
index 9b99e23..2840c7d 100644
--- a/bpf.c
+++ b/bpf.c
@@ -880,6 +880,7 @@ bpf_prog_used_maps(int idx, char *retbuf)
                                sprintf(&retbuf[strlen(retbuf)], "%s%ld", 
                                        strlen(retbuf) ? "," : "",
                                        bpf->maplist[m].index);
+                               break;
                        }
                }
        }
-- 
2.52.0
--
Crash-utility mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki

Reply via email to