From: Andre Noll Date: Tue, 7 Jan 2014 17:47:20 +0000 (+0000) Subject: gui: Rename label of check_key_map_args() X-Git-Tag: v0.5.3~12^2~44 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=4b22b42cd97e269118e6d4f6e0f4442f098a843f;p=paraslash.git gui: Rename label of check_key_map_args() The old name is misleading since the code starting at this label will be executed unconditionally. --- diff --git a/gui.c b/gui.c index 7507eea4..e41977ef 100644 --- 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)) - goto err_out; + goto out; free(tmp); tmp = para_strdup(s); if (!split_key_map(tmp, &handler, &arg)) - goto err_out; + goto out; if (strlen(handler) != 1) - goto err_out; + goto out; if (*handler != 'x' && *handler != 'd' && *handler != 'i' && *handler != 'p') - goto err_out; + goto out; if (*handler != 'i') continue; if (find_cmd_byname(arg) < 0) - goto err_out; + goto out; } ret = 0; -err_out: +out: free(tmp); return ret; }