]> sourceware.org Git - systemtap.git/commit
stapbpf pr24811 bugfix :: don't pop keys.back() on first iteration
authorSerhei Makarov <smakarov@redhat.com>
Mon, 15 Jul 2019 17:14:25 +0000 (13:14 -0400)
committerSerhei Makarov <smakarov@redhat.com>
Mon, 15 Jul 2019 17:14:25 +0000 (13:14 -0400)
commit1c9948168af8ab6bd5de608879eed182e6e1888e
tree68d98d70b5723c25a90497badbbc3837faf8feb3
parent984042af303ce8ecccc8d896333e9c88738f13f8
stapbpf pr24811 bugfix :: don't pop keys.back() on first iteration

If key == NULL, the sorted data for the current foreach loop
has not yet been created. Hence if limit == 0, keys.back() shouldn't
be popped.

* stapbpf/bpfinterp.cxx (map_get_next_key): bugfix for limit == 0.
stapbpf/bpfinterp.cxx
This page took 0.026682 seconds and 5 git commands to generate.