Explorar o código

testsam: Initialize err

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Jan Friesse hai 2 meses
pai
achega
7c8288f204
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      test/testsam.c

+ 1 - 0
test/testsam.c

@@ -1381,6 +1381,7 @@ static int run_cmap_test(const char *test_name,
 	int n;
 
 	old_pid = 0;
+	err = 0;
 
 	fprintf (stderr, "Running %s test\n", test_name);