소스 검색

Satisfy valgrind on optimized bin

Serj Kalichev 5 년 전
부모
커밋
089689b018
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)