diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2017-06-05 21:30:08 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw@src.gnome.org> | 2017-07-18 22:54:58 +0800 |
commit | 2e107ff2323ba2ede1c864d25e5f34ae054852ba (patch) | |
tree | 72faea6279d0dee86d3b49c4641aa387c1a36d92 /pango/fonts.c | |
parent | a3325f632fdb7e993397385bd21c3700d5ec066e (diff) | |
download | pango-2e107ff2323ba2ede1c864d25e5f34ae054852ba.tar.gz |
Don't check array for NULL
Arrays can never be NULL, and doing unnecessary checking causes
compilers to show warnings.
https://bugzilla.gnome.org/show_bug.cgi?id=783428
Diffstat (limited to 'pango/fonts.c')
-rw-r--r-- | pango/fonts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index 887f03cb..49e035b8 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -1188,7 +1188,7 @@ append_field (GString *str, const char *what, const FieldMap *map, int n_element if (map[i].value != val) continue; - if (G_LIKELY (map[i].str && map[i].str[0])) + if (G_LIKELY (map[i].str[0])) { if (G_LIKELY (str->len > 0 && str->str[str->len -1] != ' ')) g_string_append_c (str, ' '); |