shared: add nm_utils_strv_make_deep_copied() helper
At several places we create strv arrays where the strings themself are not deep-copied. This helper function iterates over such an "const char **" array, clones the strings, and updates the strv array inplace to be a "char **" strv array. This helper function is to reduce code duplication.
Showing with 25 additions and 0 deletions