]> git.ipfire.org Git - thirdparty/bacula.git/commit
Strip leading/ending spaces in plugutil_str_split_to_alist()
authorEric Bollengier <eric@baculasystems.com>
Fri, 11 Feb 2022 09:28:16 +0000 (10:28 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:57 +0000 (13:56 +0200)
commitd171f625a2f7b831fbf792340202c5c48296aa6a
tree8b45eb2c87142b30e18051c5009d2b81e064fa57
parent077e4518c3f0af314d411137fc40b552985f5fe0
Strip leading/ending spaces in plugutil_str_split_to_alist()

The string "label: akeyword" was returning "label" and " akeyword"
and the code was not designed to handle the extra space in the keyword.

According to the current usage, it seems that the leading/ending
white spaces are polluting the variables.
bacula/src/plugins/fd/pluginlib/pluginlib.cpp
bacula/src/plugins/fd/pluginlib/pluginlib.h