]> 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:18:40 +0000 (14:18 +0000)
commit731fddd5d0d77bcd42c3a246fffb8affce6a8551
tree953d64ea806a2bcaac5aa7b8a9203385c2453a20
parentb510d681a1672ee6e72577501cab1fd5619d2155
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 8ce69eda14c6564240a7f81640c1abad1cb76778)
include/asterisk/strings.h
main/utils.c