Closed hao-lee closed 7 years ago
I'd do it like this:
- if (name == NULL || strcmp (name, "Unknown") == 0)
+ if (name == NULL || g_strcmp0 (name, "") == 0 ||
+ g_strcmp0 (name, "Unknown") == 0)
@XRevan86 Yeah, this way could handle all possible results. :smile:
All right. I fetch the latest commits and find this line has been changed....The reaction is so fast...
The function
g_get_real_name
is used to get user's full name, but when the full name is not existed, it will return an empty string instead ofNULL
.