gui: Rename label of check_key_map_args()
authorAndre Noll <maan@systemlinux.org>
Tue, 7 Jan 2014 17:47:20 +0000 (17:47 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 May 2014 12:04:04 +0000 (14:04 +0200)
The old name is misleading since the code starting at this label will
be executed unconditionally.

gui.c

diff --git a/gui.c b/gui.c
index 7507eea4cbe0364f837d94761ae36aa626dddd04..e41977efa9b90a3afc95b72434de935125c95685 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -887,25 +887,25 @@ static int check_key_map_args(void)
        for (i = 0; i < conf.key_map_given; ++i) {
                s = conf.key_map_arg[i];
                if (!(*s))
        for (i = 0; i < conf.key_map_given; ++i) {
                s = conf.key_map_arg[i];
                if (!(*s))
-                       goto err_out;
+                       goto out;
                free(tmp);
                tmp = para_strdup(s);
                if (!split_key_map(tmp, &handler, &arg))
                free(tmp);
                tmp = para_strdup(s);
                if (!split_key_map(tmp, &handler, &arg))
-                       goto err_out;
+                       goto out;
                if (strlen(handler) != 1)
                if (strlen(handler) != 1)
-                       goto err_out;
+                       goto out;
                if (*handler != 'x'
                        && *handler != 'd'
                        && *handler != 'i'
                        && *handler != 'p')
                if (*handler != 'x'
                        && *handler != 'd'
                        && *handler != 'i'
                        && *handler != 'p')
-                       goto err_out;
+                       goto out;
                if (*handler != 'i')
                        continue;
                if (find_cmd_byname(arg) < 0)
                if (*handler != 'i')
                        continue;
                if (find_cmd_byname(arg) < 0)
-                       goto err_out;
+                       goto out;
        }
        ret = 0;
        }
        ret = 0;
-err_out:
+out:
        free(tmp);
        return ret;
 }
        free(tmp);
        return ret;
 }