Explorar el Código

Satisfy valgrind on optimized bin

Serj Kalichev hace 5 años
padre
commit
089689b018
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      clish/nspace/nspace.c

+ 1 - 1
clish/nspace/nspace.c

@@ -152,7 +152,7 @@ static const char *clish_nspace_after_prefix(const regex_t *prefix_regex,
 	const char *line, char **real_prefix)
 {
 	const char *in_line = NULL;
-	regmatch_t pmatch[1];
+	regmatch_t pmatch[1] = {};
 	int res;
 
 	if (!line)