1 gcc-7 newly detects this class of bugs.
2 In this particular case it's clear that the inention was
3 to detect if the string is non-NULL *and* non-empty.
6 diff --git a/unique/uniqueapp.c b/unique/uniqueapp.c
7 index b40a86c..66a7226 100644
8 --- a/unique/uniqueapp.c
9 +++ b/unique/uniqueapp.c
10 @@ -176,7 +176,7 @@ set_startup_id (UniqueBackend *backend,
14 - if (startup_id && startup_id != '\0')
15 + if (startup_id && *startup_id != '\0')
16 id = g_strdup (startup_id);