]> git.ipfire.org Git - thirdparty/asterisk.git/commit
utils: Make behavior of ast_strsep* match strsep.
authorJoshua C. Colp <jcolp@sangoma.com>
Wed, 31 Jan 2024 14:03:28 +0000 (10:03 -0400)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 7 Mar 2024 14:17:22 +0000 (14:17 +0000)
commitba68bb9221f53bb46cb8d559bd4e63b10be3a146
tree6e169aea35c548cc859655220c94dc80289546d2
parentec696808013d80062f5855f64ce479eeba7603c7
utils: Make behavior of ast_strsep* match strsep.

Given the scenario of passing an empty string to the
ast_strsep functions the functions would return NULL
instead of an empty string. This is counter to how
strsep itself works.

This change alters the behavior of the functions to
match that of strsep.

Fixes: #565
(cherry picked from commit 167d393c0f224992da79647de23aa4ca363e2cbe)
include/asterisk/strings.h
main/utils.c