浏览代码

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)