cli: avoid unnecessary string clones for stripping whitespace for property values

This commit is contained in:
Thomas Haller
2019-03-18 13:14:33 +01:00
parent 649968632e
commit 2bc29453bd
2 changed files with 40 additions and 38 deletions

View File

@@ -987,6 +987,8 @@ comp_l:
* The strings to which the result strv array points to are allocated
* after the returned result itself. Don't free the strings themself,
* but free everything with g_free().
* It is however safe and allowed to modify the indiviual strings,
* like "g_strstrip((char *) iter[0])".
*/
const char **
nm_utils_strsplit_set (const char *str, const char *delimiters, gboolean allow_escaping)