[gtk+] convert-emoji: Don’t pointlessly do rest of loop
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] convert-emoji: Don’t pointlessly do rest of loop
- Date: Sun, 13 Aug 2017 16:42:44 +0000 (UTC)
commit 4a6f5136bab0316aca9c04bbac5256c230213b2f
Author: Daniel Boles <dboles src gnome org>
Date: Sun Aug 13 17:39:13 2017 +0100
convert-emoji: Don’t pointlessly do rest of loop
skip can never become FALSE again, so break as soon as it becomes TRUE.
gtk/emoji/convert-emoji.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/emoji/convert-emoji.c b/gtk/emoji/convert-emoji.c
index 989eefd..1e1f171 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]