Pārlūkot izejas kodu

lib/slre: remove superfluous assignment

It makes no sense to assign a value to 'res' if the next use of the
variable is an assignment.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Heinrich Schuchardt 5 gadi atpakaļ
vecāks
revīzija
f2906e5f58
1 mainītis faili ar 0 papildinājumiem un 2 dzēšanām
  1. 0 2
      lib/slre.c

+ 0 - 2
lib/slre.c

@@ -703,8 +703,6 @@ int main(int argc, char *argv[])
 
 		(void) memset(caps, 0, sizeof(caps));
 
-		res = 0;
-
 		res = slre_match(&slre, data, len, caps);
 		printf("Result [%d]: %d\n", i, res);