diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h index 4b62dd21a..41af19c94 100644 --- a/src/pulsecore/macro.h +++ b/src/pulsecore/macro.h @@ -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