[gtk+/gtk-3-22] convert-emoji: Don’t pointlessly do rest of loop



commit 929108d31a2083984aa19605d500199a54d62773
Author: Daniel Boles <dboles src gmail com>
Date:   Sat Aug 12 14:00:40 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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/emoji/convert-emoji.c b/gtk/emoji/convert-emoji.c
index d06b81b..532ead1 100644
--- a/gtk/emoji/convert-emoji.c
+++ b/gtk/emoji/convert-emoji.c
@@ -130,6 +130,7 @@ main (int argc, char *argv[])
                 for (j = 0; blacklist[j]; j++) {
                         if (strstr (name, blacklist[j]) != 0)
                                 skip = TRUE;
+                                break;
                 }
                 if (skip)
                         continue;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]