summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-02-10 23:20:32 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-02-13 09:13:00 -0800
commitedb6fd1726146a85f166ffa34e361d88e8d386e8 (patch)
treee96d5162ab99c98e23394e9b0875b109330fe627
parentae3cfee9bd393d28159072a67360de57e64f48cd (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>
-rw-r--r--setxkbmap.c2
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)