diff options
Diffstat (limited to 'src/gs-lock-plug.c')
-rw-r--r-- | src/gs-lock-plug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c index 99fc547..4069b11 100644 --- a/src/gs-lock-plug.c +++ b/src/gs-lock-plug.c @@ -1595,7 +1595,8 @@ get_user_display_name (void) name = g_get_real_name (); - if (name == NULL || strcmp (name, "Unknown") == 0) + if (name == NULL || g_strcmp0 (name, "") == 0 || + g_strcmp0 (name, "Unknown") == 0) { name = g_get_user_name (); } |