diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2022-12-02 21:22:37 +0000 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2022-12-05 09:50:18 +0000 |
commit | 9067f3332ed0ddc143105b003e614f3f90719916 (patch) | |
tree | 9877de9a294f4c39c061c4a7db76090db3268ad2 /src/plugins/mss_clamp | |
parent | 309f7aac170767028a2e6e7e9424ec3d13304aff (diff) |
stats: return empty vector rather than NULL if stat_segment_dump_r() is run on an empty vector from ls
The return value in this function is initialized with 0, so if a vector of length 0 is passed
to stat_segment_dump_r, then this return value is never populated, resulting in inability
to distinguish between a successful dump of an empty vector and an error.
Solution: call vec_alloc(). As a side effect might get some trivial speed-up.
Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: I33fefd801df457152e9ec257742305182e91f339
Diffstat (limited to 'src/plugins/mss_clamp')
0 files changed, 0 insertions, 0 deletions