diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-02-10 23:20:32 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-02-13 09:13:00 -0800 |
commit | edb6fd1726146a85f166ffa34e361d88e8d386e8 (patch) | |
tree | e96d5162ab99c98e23394e9b0875b109330fe627 /setxkbmap.c | |
parent | ae3cfee9bd393d28159072a67360de57e64f48cd (diff) |
assigned value never used: "next" set at setxkbmap.c(654)
If we go through the loop, next is overwritten on the very first line.
If we don't go through the loop, next is never referenced again.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Dirk Wallenstein <halsmit@t-online.de>
Diffstat (limited to 'setxkbmap.c')
-rw-r--r-- | setxkbmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setxkbmap.c b/setxkbmap.c index 75c3864..7f318ac 100644 --- a/setxkbmap.c +++ b/setxkbmap.c @@ -651,7 +651,7 @@ addStringToOptions(char *opt_str, int *sz_opts, int *num_opts, char ***opts) if ((str = strdup(opt_str)) == NULL) return False; - for (tmp = str, next = NULL; (tmp && *tmp != '\0') && ok; tmp = next) + for (tmp = str; (tmp && *tmp != '\0') && ok; tmp = next) { next = strchr(str, ','); if (next) |