Browse Source

Satisfy valgrind on optimized bin

Serj Kalichev 7 months ago
parent
commit
089689b018
1 changed files with 1 additions and 1 deletions
  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)