mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
core-util: Improve pa_replace() behaviour
- Assert that the search string isn't empty. - Add test. - Improve documentation.
This commit is contained in:
parent
c9c8f4285f
commit
111e332556
3 changed files with 11 additions and 0 deletions
|
|
@ -3194,6 +3194,7 @@ char *pa_replace(const char*s, const char*a, const char *b) {
|
|||
|
||||
pa_assert(s);
|
||||
pa_assert(a);
|
||||
pa_assert(*a);
|
||||
pa_assert(b);
|
||||
|
||||
an = strlen(a);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue