summaryrefslogtreecommitdiff
path: root/gtk/emoji
diff options
context:
space:
mode:
authorDaniel Boles <dboles@src.gnome.org>2017-08-13 17:39:13 +0100
committerDaniel Boles <dboles@src.gnome.org>2017-08-13 17:39:13 +0100
commit4a6f5136bab0316aca9c04bbac5256c230213b2f (patch)
treec0605f6d90d94f5c0566b0992ce15f504a9b4853 /gtk/emoji
parentf998360600c9841acd0b200baa8c94ae72e8bd66 (diff)
downloadgtk+-4a6f5136bab0316aca9c04bbac5256c230213b2f.tar.gz
convert-emoji: Don’t pointlessly do rest of loop
skip can never become FALSE again, so break as soon as it becomes TRUE.
Diffstat (limited to 'gtk/emoji')
-rw-r--r--gtk/emoji/convert-emoji.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/emoji/convert-emoji.c b/gtk/emoji/convert-emoji.c
index 989eefdf24..1e1f171260 100644
--- a/gtk/emoji/convert-emoji.c
+++ b/gtk/emoji/convert-emoji.c
@@ -133,7 +133,10 @@ main (int argc, char *argv[])
for (j = 0; blacklist[j]; j++)
{
if (strstr (name, blacklist[j]) != 0)
- skip = TRUE;
+ {
+ skip = TRUE;
+ break;
+ }
}
if (skip)
continue;