mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
add new function pa_strnull() to simplify passing null strings to non-linux printf()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2045 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
f873a2a224
commit
e043eaad94
1 changed files with 4 additions and 0 deletions
|
|
@ -152,4 +152,8 @@ typedef int pa_bool_t;
|
||||||
#define PA_PATH_SEP_CHAR '/'
|
#define PA_PATH_SEP_CHAR '/'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static inline const char *pa_strnull(const char *x) {
|
||||||
|
return x ? x : "(null)";
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue