From edb6fd1726146a85f166ffa34e361d88e8d386e8 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 10 Feb 2011 23:20:32 -0800 Subject: 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 Reviewed-by: Dirk Wallenstein --- setxkbmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3