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