diff --git a/src/shared/daemon-util.h b/src/shared/daemon-util.h index 5e9eca1d9e..04b8245310 100644 --- a/src/shared/daemon-util.h +++ b/src/shared/daemon-util.h @@ -17,6 +17,6 @@ static inline const char *notify_start(const char *start, const char *stop) { /* This is intended to be used with _cleanup_ attribute. */ static inline void notify_on_cleanup(const char **p) { - if (p) + if (*p) (void) sd_notify(false, *p); }