diff options
author | Philip Withnall <withnall@endlessm.com> | 2017-08-14 22:56:11 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-08-15 07:22:05 +0100 |
commit | ac44aac6ec3338d4c8d8ad8e47b8045b98f12c12 (patch) | |
tree | b81fdf9146e3e598a11ae9717bf9468a36a846f4 | |
parent | ea5cba921a11476b1305c44fe88ab85bd6f71985 (diff) | |
download | appstream-glib-ac44aac6ec3338d4c8d8ad8e47b8045b98f12c12.tar.gz |
libappstream-glib: Use g_ascii_strcasecmp() instead of strcasecmp()
I don’t want to have to think about the right GNU feature test macro to
get strcasecmp() to stop hiding in the system headers. Also, we only
care about ASCII here because we’re dealing with config files.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r-- | libappstream-glib/as-app-desktop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-app-desktop.c b/libappstream-glib/as-app-desktop.c index d769539..1f12683 100644 --- a/libappstream-glib/as-app-desktop.c +++ b/libappstream-glib/as-app-desktop.c @@ -201,7 +201,7 @@ as_app_parse_file_key (AsApp *app, G_KEY_FILE_DESKTOP_GROUP, key, NULL); - if (tmp != NULL && strcasecmp (tmp, "True") == 0) + if (tmp != NULL && g_ascii_strcasecmp (tmp, "True") == 0) as_app_add_veto (app, "NoDisplay=true"); /* Type */ |