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:
Lennart Poettering 2007-11-11 22:59:34 +00:00
parent f873a2a224
commit e043eaad94

View file

@ -152,4 +152,8 @@ typedef int pa_bool_t;
#define PA_PATH_SEP_CHAR '/'
#endif
static inline const char *pa_strnull(const char *x) {
return x ? x : "(null)";
}
#endif