artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94cde01
)
initialize regmatch_t always, fixes grep -o ""
author
tedu
<tedu@openbsd.org>
Mon, 3 Apr 2017 16:18:35 +0000
(16:18 +0000)
committer
tedu
<tedu@openbsd.org>
Mon, 3 Apr 2017 16:18:35 +0000
(16:18 +0000)
from Michael Santos
usr.bin/grep/util.c
patch
|
blob
|
history
diff --git
a/usr.bin/grep/util.c
b/usr.bin/grep/util.c
index
1093b09
..
9cfed4c
100644
(file)
--- a/
usr.bin/grep/util.c
+++ b/
usr.bin/grep/util.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: util.c,v 1.5
6 2016/08/25 15:11:0
5 tedu Exp $ */
+/* $OpenBSD: util.c,v 1.5
7 2017/04/03 16:18:3
5 tedu Exp $ */
/*-
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
@@
-171,7
+171,7
@@
procfile(char *fn)
static int
procline(str_t *l, int nottext)
{
- regmatch_t pmatch;
+ regmatch_t pmatch
= { 0 }
;
int c, i, r;
regoff_t offset;